> Surely it's unconstitutional.
It’s not. Free market principles are not protected by the constitution. The closest is the Commerce Clause and its mention of contracts. But that’s the idea states can’t just wipe out existing contracts (debts). The government can regulate them.
> the government should not protect people from their own negligence or ignorance
This is an extreme position to take. All governments do this.