And my vision completely faded black for around 5 seconds. Also the whole bottom half of my body went numb and I almost fell because I couldn't feel my feet.

What the hell was that and how can I fix it. I should mention I just pulled an all-nighter.