Nobody ever expects companies to be 'generous' that's not a thing - the issues are in contracts like anything else.
Regardless, I suppose the end result should be to make unemployment kick in faster so you don't need an insolvent company to provide a severance they don't have the funds to provide.
A severance agreement with a bankrupt company is worthless.
Obviously if the company is bankrupt they cannot pay.
Don't work for companies that are going, or could be going bankrupt. In the vast majority of the cases the writing is on the wall long before that happens.
Payroll taxes are just another form of income tax, the company doesn't really pay it, the employee does, economically speaking that money would go to the employee were those payroll taxes not to exist. The the co. does pay it is just an accounting issue.