Yes, this is something that can be fixed by law. At least my native country Finland has a sort of public bankruptcy insurance (“palkkaturva”) that extends automatically to all employees.
In the event of a bankruptcy leaving you with unpaid wages, you file an application with the same office that handles unemployment benefits, and they will recompensate you. C-level managers are exempt.
This is something entirely different. And FYI a strong incentive for companies to never offer any kind of severance in these situations since it's all socialized.
Better to just be transparent about things so employees can properly consider the risk in the situation.
The issue here is that a bankrupt company is breaking the contracts it made with employees — and you suggest it can be fixed by having employees enter into another contract with the same company. Do you see the problem?
Better it be required by law and provided by the government than you hoping you'll get severance and being beholden to a company's "generosity", and the company include the additional tax payments as cost of doing business (same as the other employment taxes they're required to pay).