Anyone recovered from brain fog?

I am student in a very cognitively demanding course. Pfs has completely disrupted my studies. i don't how long i will continue with this how to recover from brain fog fast