Names for effects of sleep deprivation on the brain & body
During extreme sleep deprivation you can briefly fall asleep, this is known as a microsleep. The disorientation that you experienced can be referred to as  Hypogogia.

Hypogogia covers a range of effects including visual and aural hallucinations as well as having thoughts that are experienced as seeming logical during the microsleep but illogical once you're awake.