He didn't screw over his friends.
I'm sure he feels like he did. But he didn't. Unless he was actively lying to them along the way. Which is plausible but certainly not something I would assume about somebody.
He's in school. He's done the best he could with a hard problem. He shouldn't be hard on himself and IMO you shouldn't either.