School provides you with skills and credentials, and marks are just to measure a baseline of confidence and motivation. Performing well technically won't necessarily be enough to satisfy you, your peers, or your bosses.
I think school gives the illusion of direction. Tying your mental well-being too tightly to your performance is precarious. In a way, all guarantees are lies that the lessons of living eventually correct.