That's the point...
Layoffs and firings hurt stock price and needs unemployment checks.
So they make it as shitty as possible, hoping people quit instead.
Never quit your job over shit like this. Refuse and make them fire you if they care that much.
You might even get a class action for unlawful termination later, we need to start treating corporations like how they treat people.