In the US, just need to keep healthcare costs under control.
Retirees don't work, which means nevermind the absolute amount of demand (no kids, etc., make less per household sure) the ratio of supply to demand offsets the productivity / industrial capacity gains. Coupled with more retires, that could restore the balance and get the "Keynsian feedback loop" going again.
(We could still go into a massive worldwide recession, but that would be a political result of the powers that be not wanting the profit share of national income to decrease. That is plenty possible but not some unavoidable "demographic destiny".)
P.S. - I was doing data entry for local real estate companies and simple BASIC 'cash register' setups for local businesses.