Apple has found itself dealing with component shortages exacerbated by the AI boom, and the company is scrambling for solutions.