ahaha, I can imagine being at your lowest and channelling all that energy into studying and the next thing, you grade drop again. It can just affect someone mental health.
But one thing about life is that, with its ups and down, we always have a lesson to learn from them.