One additional reason according to me, pressure from investors to show growth post COVID. COVID time period saw rapid market expansion for a lot of tech companies, which was not sustainable. Now that things are getting back to pre-covid times, market is also shrinking. But investors want to see growth and what better way than to reduce cost and show growth than by laying off employees.