Massive layoffs, employee surveillance and departures have fuelled reports of a heated internal climate at the tech giant.