Uploading a gallery image sometimes results in 400 nginx error.
I assume the image was too large as it was a 1.4MB PNG image but this should be communicated rather than serving a HTTP error.
I converted the image to a smaller file size jpg and it uploaded fine.