I had the same problem, a “http error” message after upload.
Changing the WP_MEMORY_LIMIT did not help: it generated a total database connection failure.
What helped is uploading smaller images. Not the 4500 px from my camera, but resized to max 1300 px wide