I have been in your situation. It is nasty. However, I am not the first person to be in that situation and you will not be the last. I understand so I'll provide you an answer.
Clear the decks. Until after finals, you will do three things and three things only: 1) Study and do homework 2) Eat when necessary 3) Sleep as little as possible.
Welcome to the club.