You’re assuming market forces will kick in. Most student loans are made by the federal government which can decide to secure these loans or not. Today, they are not underwritten and there’s no reason to think they would be if bankruptcy is enabled. They could just view it as a subsidy which is likely the most politically popular and easy thing to do and push the costs onto taxpayers or raise the standard interest rate for everyone.