A global pivot toward high-end AI hardware is tightening supplies of mainstream memory chips and raising costs for repairs, upgrades and everyday devices.