The Facebook parent company is reportedly considering mass layoffs as investors question whether the company is overspending on AI.