Firms slash worker pay and positions to bankroll AI infrastructure as studies question whether investments will pay off.