Your tests on Necrons, Tau and Orcs were essential because I can't reproduce those crashes so easily. I also wasted an insane amount of time for tests and my first solution wasn't working too.Remove terrain_analyzer:GetPathingDistance() then.
I really ask myself why I do spend my time with endless test while you brush it aside with one remark.
I'm tired of this. Do whatever you like. Will not waste more time with this problem.
The fact that terrain_analyzer:GetPathingDistance() is unstable is known for at least one year. You checked it even yourself that time. So please don't blame me if you've forgotten that the function is unstable.
Further the CompassMove() function in it's current state was written by me. And the only thing I can do is to deactivate it, because both functions GetPathingDistance() and CanJumpToPosition() are unstable now. I can't really say that it's funny for me.