Hello,
Not much to say here but, this bug is still around.
If your military power gets too high (for instance, making that game-ending 1 million+ strength fleet) your faction power becomes zero, and an enemy civilization that amounts to a speck of dust compared to you will declare war on you.