Mark Zuckerberg told Meta employees the company’s 8,000 layoffs are necessary to stay competitive in the AI race.