GD is the image library we use to resize the images.
You could try increasing the memory limit on the page:
When the page runs out of memory there is no memory left to display an error. It goes blank and displays the error, but you can't do anything else.
You could check the image size and dimensions before trying to resize it and give an error if it is larger than you can allow based on your settings.