This is a known problem with Gregwar, the image manipulation library Grav runs. It does not handle memory well enough, and so manipulating many or large images will halt PHP because memory is not continually flushed. This is a limitation, which you can either resolve by resizing only few and small images, or doing it yourself outside of Grav (with for example Node and Gulp, which is a popular workflow).