Yes, it's like not being able to remember your dreams, or things when you're too drunk.
That's just aggressive garbage collection happening when you wake up, arguably so you don't risk confusing dreams and reality :-)
But you can somewhat partially work around it by taking notes right after waking up, before doing anything else.