As Weedpacket points out, you can estimate the memory that a given picture will need by looking at its dimensions/resolution. If your system doesn't have enough RAM, then yes, the resolution is too large for the GD library to work with it.
If your goal(or, in this case, a requirement) is to resize the picture, you might consider looking at using 3rd-party software such as ImageMagick.