I do not think there is any way to fix this bug currently, but you can try minimising the crew capacity needed, or move the ship slower. If you use less crew on the ssame size ship, it may work better and less glitchily. If you move slower, there is less calculations for the ship gravity. This...