Meta faces potential major layoffs despite AI investment surge.