Ok, I added some further limitation on how much memory pathfinding can allocate, so hopefully now it will not exceed the 32-bit process limit.
As for the player getting stuck in those situations, I'll address this in the next major update probably as it would be too big of a change to release without extended testing.