Hi, and welcome to the Julia community!
What happens if you run the code (or MWE thereof) in a different terminal than the VS Code one?
I’m not sure that this would cause a segmentation error, but note that you’re (potentially) allocating a lot of memory here, as orbit_array[j, :, :] this makes a copy for each task. You could see if @view(orbit_array[j, :, :]) fixes the problem. (Also, if possible, consider reordering the dimensions of orbit_array so that you get orbit_array[:, :, j], which is a contiguous chunk of memory.)