In 2012, the US was fighting two wars, so the fact that DoD spending didn't go down by 2022 is indicative of the problem.
It's also misleading to use the few years when there was substantial pandemic related spending as indicative of the US's normal spending habits.
Your information is out of date. Costs have exceeded tax income since 2010 and have exceeded total income (tax plus interest) since 2021.
The OASI trust fund that pays social security retirement benefits is projected to have a $53B (3.8%) actuarial shortfall this year, up from $40B last year. The trustees project this shortfall will increase every year thereafter until the fund is completely depleted ten years from now (assuming no change in law)
The military spending that really added to the debt were primarily the wars in Iraq and Afghanistan.