Is it a large image?
That would generally indicate the image is bigger than what can be handled by your server. In PHP, the most common setting would be post_max_size (and maybe upload_max_filesize), though it could happen from a web server configuration. These would need to be increased in your PHP config (before XenForo gets involved).