If you increase the sampling it might be a good a idea to first estimate the number of resulting data points. Usually, this number will be 4*n*n where n is the sampling size (32, 64, etc.). In your case, you set sampling to 2, so the pupil sampling will be 64 x 64, and there will be 128x128=16,384 values in the array. (This will require 8 bytes per number, or a total of 131 kb.) You started from vector size of 4500, and you increased it by 100 in each cycle, so it would require lots of iterations to get there. Please try to start your vector size from a value larger than 16,384, and see if it solves the problem. In the commented section I saw you tried an even higher sampling 3, if you wish to increase to sampling 3, then please make sure to increase the vector size to be larger than 256x256=65,536.
The -3 error appears to be a general purpose error code for the ZPL call to PSFs that returns when it is not an aborted code, a too-small vector, or insufficient RAM. You'll probably have to play around with your system to get it working and then adjust parameters gradually until it shows up again to see what's going on.