The blunt truth is that layoffs are not really failures from a business perspective. Employees and their employment don't really matter independent of other things. Could be the symptom of a mistake or could just be a failed bet but that's all. It's just a question of risk, reward and cost. Not a question of people. If the layoffs targets low performing employees or departments then it's actually a business win.
If you don't like that then consider pushing for unions, government regulations or join an employee co-op. However many people don't like that option because they prefer to not risk the massive compensation packages that big tech gives them.
I'm reminded of the Street Fighter quote:
"For you, the day Bison graced your village was the most important day of your life. But for me... it was Tuesday."