The foundry giant's growth has become increasingly tied to a small group of hyperscalers spending heavily on artificial intelligence.