That’s why it’s better to have a mix of assets, some that can be easily liquidated, than cash.
$1m in the right assets could become $4m in youre scenario with the same purchasing power of the $1m before inflation.
In reality, you’ll probably lose some value though because the people holding cash that now have far less purchasing power, which torpedoes demand. Still better to be in assets than cash though.