The only solution is for nation states to invest pension funds in technology and innovation so that you're not on the hook for fiat decades in the future to support the elderly.
Social Security in the US has lent ~$2.6-2.9 trillion from its trust fund to the US government; imagine if that had been spent on driving down the cost of caring for the elderly instead of frivolous wars and tax cuts. You can't save up for the future to pay for expenses you can't predict; you have to invest today's dollars in getting ahead of the curve, to drastically drive down the cost of future predicted services you'll need to provide.
TL;DR Invest resources today to ensure a steep cost decline curve for existing in the future.
Social Security in the US has lent ~$2.6-2.9 trillion from its trust fund to the US government; imagine if that had been spent on driving down the cost of caring for the elderly instead of frivolous wars and tax cuts. You can't save up for the future to pay for expenses you can't predict; you have to invest today's dollars in getting ahead of the curve, to drastically drive down the cost of future predicted services you'll need to provide.
TL;DR Invest resources today to ensure a steep cost decline curve for existing in the future.