The cuts are expected to hit teams working on virtual-reality headsets and Meta’s VR-based social network.