I personally know a story in this vein with a (sort of) happy ending.

A PhD student discovered that a result of his professor would imply the solution to a big conjecture in another field. The people in that field then analyzed the prof's result and found that the proof was flawed. The student was still allowed to graduate based on this since the finding of the connection between fields was brilliant. Then he quit academia (not because of this story, he had planned it before). Then a year later the prof figured out how to fix the flaw in his proof and published a paper with his former student, thus solving the conjecture. The two are still on good terms, writing papers together.

> The two are still on good terms, writing papers together.

Why are you framing this like this? Do mathematician take these kind of things personally?

Because I think the median reader would expect this sort of thing to come up at some point in the story.