It ain't the price raise that's the mistake (even if that's what's currently painful for those of us looking to buy RAM). It's the willingness to only raise prices, and not meaningfully expand production, that's the mistake.
But since when? There are public announcements about new energy deals since summer 2024. But I'm missing any information about similar RAM/NAND/HDD deals back then, so that corresponding shortages could be only for short time until, say, summer 2026.