Seems like a pretty simple solution. Tie student loans to the Bureau of Labor Statistics employment projections.
More jobs than workers? Then make student loans available at zero or 1% interest. Same for high value trades in STEM. I'd even include blue collar work like truck drivers and heavy equipment operators, or whatever is in need.
More workers than jobs? Deny the loan. No reason to create more "educated" unemployed or underemployed people.
Ability to repay based on median salary? Set a debt to income ratio calculation. If the loan can't be repaid back in X years with the loan only being 10% of your DTI then deny it. Don't allow kids to take on more debt than they can repay in a reasonable amount of time.
I'd tie in the visa programs and business here as well. Make businesses that request foreign labor have skin in the game. Require that they provide scholarships, grants, internships, and on the job training to citizens prior to approving any work visas for foreign labor. Make them prove they've exhausted all avenues to hire, educate, or train citizens.