The problem looks likely related to the error handling with prange.
Attach a file by drag & drop or click to upload