Investors are wary of Meta's layoffs and big spending on AI.