The proposed listing comes amid growing investor scrutiny of AI spending, infrastructure costs and the ability of companies to generate returns.