I know, this must be stressing you out. This is generally happening because you're stressed about your exams you will have to tell yourself that this anxiety will be managed if you start studying and putting in the effort, if you are already doing so then things will eventually fall in place, studying and career have no other way of being achieved.
set a target for yourself and follow it with systematic ideas.
You will definitely get there.
I am so sure, All the best.