The AI boom is entering a more unforgiving phase, as investors question whether the billions poured into data centers will translate into sustainable profits.