In the unlikely event you end up with giant medical bills, despite having health insurance, it doesn't matter whether your money was invested well, or poorly. The hospital will happily take every penny.
For the other overwhelming majority of life events, you should invest your savings prudently, instead of stuffing them into a mattress.
If you have no savings, this is a moot point - but so is inflation. Why do you care that money is losing value if you don't have any?
If anything, if you are in debt, you want inflation - because it lets you inflate your debt away.