It's funny you mention that because this exact same issue has come up in war in Iran and the closure of the Strait of Hormuz.
What a producer will do now is hedge their risk. They do this by forward-selling their product, in this case oil from an oil well. The peak for spot prices, depending on the particular flavor of oil, peaked at >$170/barrel while future prices (which are the prices we see) didn't really get above $100 while long-dated futures were significantly lower, rarely exceeding $70/barrel by much.
Now this is a problem because there's no incentive to invest in extra production when you can only sell it at $70/barrel, despite the spot price being up to $100/barrel higher. So new wells and new production in general is down despite the supply disruptions and high prices.
I imagine RAM is in a similar position. It takes a long time to bring on more supply and suppliers don't expect those prices to last. Likely a large amount of new supply will probably cause the next crash in the boom-bust cycle.
But there's another problem with all this. A lot of existing manufacturers are switching from DDR5 (and soon DDR6) to HBM because it's way more profitable and there's seemingly insatiable demand for high end GPUs. I expect that in the short-to-medium term we're both going to see no increase in supply and the DDR prices are going to keep rising to the point where in a year we'll probably look back on current prices fondly
All I can say is I'm happy I upgraded my laptop to 64GB (for $200) and my PC to 64GB (also for $200) last year. .