blank out
Definitions
To experience a temporary failure of memory or consciousness.
To intentionally ignore or exclude someone or something from one's thoughts.
Examples
I completely blanked out during the exam and couldn't remember a single answer.
Sometimes I just blank out when I'm tired and forget what I was about to say.