I deleted all the other galleries that I didn’t need at the moment. I’m not sure that I had error_log files set up, so I set them up, ran it again, and it now has four empty files with names like 4c9331f0-error.log.
PHP: Boosted to 256, same problem.
These images are 800×533 px.