Many people have a dream where they are extremely confused.
Sometimes, we wake in that same confused state and have the feeling that we don't know where we are!
Dreams like this might happen when the brain is trying to organize thoughts from the day and cannot pull the parts together, hence the brain seems extremely confused.
If this keeps happening, you might think about more simple tasks or pleasant events from the day right before sleeping. That will help the mind focus on other issues.