West has been incentivized to build their own fabs for years but still fumbles that effort. All the billions spent hardening the south china sea and taiwans chip manufacturing from the future chinese invasion would have probably paid for a lot of manufacturing capacity stateside.
Mainland China is growing its own RAM manufacturing capacity. They are too tiny to make a real dent into the RAMpocalypse yet but this can potentially change.