They aren't overproducing consumer modules, they're actively cutting production of those. They're producing datacenter/AI specific form factors that won't be compatible with consumer hardware.
if it gets really bad though the superscalers will guarantee them enough business years out to make the investment worth it