This problem should be fixed on a constitutional level. The Swiss Debt brake seems to be working, and is probably a good model to copy. https://www.efd.admin.ch/en/the-debt-brake
Impossible to imagine this in any other country.
Compare to voting where 50% of Brits voted to destroy their economy.