I think the bug is related to power storage
My ship was permacloak/jam even when engines active, but it would randomly turn off. Then I increased the powerstorage above the 20k max from generators alone and the problem was fixed.
What I think is happening:
ship generates 1,000,000 power. ship...