What sucks about this bug is that once you unlock Huge hulls, your military power goes up CRAZY fast every time you build a new ship, so you can easily hit 5000, reach 0 and then get so powerful that your score starts going up again, then you reach 5000 again, twice, in like 10 turns.
This sucks for the AI because Huge hulls are the most powerful counter to Carriers, which they seem to otherwise have trouble with, but once they get huge hulls online, they surrender because they think their military power is zero.
I'm sad that this bug is still around. It ruins the late game completely.