Stocks continue to rally amid the AI boom, but the chip sector is scrambling to shore up access to key materials as costs rise.