Typically markets are good at optimizing everything that is priced into the market.
Long term price stability is currently not something that is optimized for.
One way to solve it is of course abandoning the ide of a market economy for power.
Another is to let those industries that need price stability buy that on the futures market.