The government could certainly choose to subsidize those students explicitly by providing loans on better terms itself. It's not like there are no other solutions.
Regardless, we as a society should get beyond some bizarre idea that there is no other way to provide university education without allowing the loans to be dischargeable. That's exactly how it used to be in the US. Furthermore, many other models are used elsewhere in the world. We should call it what it is: a government supported subsidization of the loan industry taking advantage of naive students. Of course it works out well for some people, but there should be recourse for those it does not. That's exactly the point of bankruptcy.