The other thing is that the laid off employees will lose all their unvested RSUs. These shares were granted as compensation for past performance but they can now be conveniently clawed back by the company just because they decide to lay you off. Stock can be a large part of someone's compensation in a tech company. Companies shouldn't be allowed to benefit this way if they decide to lay off employees.
Alas this happens in all FAANG layoffs too, some lucky people get to received one more vest but nothing close to all unvested RSUs