S2 batch processing in GPT does not complete image

Hi there,
I hope someone here can help me out. I am trying to preprocess a set of Sentinel-2 images with GPT. The preprocessing is simple: resample and subset, and there are not many images, 16 only. I attach the graph and the .sh file. When I open the figures there are rows missing, not always same rows. Can someone explain me what is going on and how could I fix that?
s2-res-sub-generic.xml (2.3 KB)
preprocessing-s2-col.sh (453 Bytes)

It could be a memory problem:

Hello, I will check it out. Thank you very much for your response!