Meta prepares significant workforce reduction amid artificial intelligence pivot.