The Roman Empire didn’t come to an end because of military failures. It crumbled from within, eaten away by a rot of societal cancer.
So it went for most empires.
Having the strongest military in the world at the expense of the education, health, and well-being of the people is no formula for longevity.