The goal of the CEO of a publicly traded company is to make the shareholders money. As much money as possible. If laying people off is the best way to do that, they'll do it. Blaming the CEO for doing the job they were hired to do seems short-sighted. Blame the broken system that incentivizes this, that makes doing it profitable. And then, let's change the system.
How is failing to predict market conditions a few months into the future and over hiring part of making a publicly traded company money? If anything, these layoffs are an admission from management that they're wasting money.