Solution, don't lend money. Sell education in exchange for a promise to pay x% of salary for y years. Students won't go unemployed just to avoid paying it back and it aligns incentives. If colleges want to make lots of money, they will have to make sure their students get good jobs upon graduation.
Declaring bankruptcy at that moment would be the optimal financial strategy if it wiped out the student debt.