That happens to me sometimes when I'm really stressed out or I have sometime big on my mind.

I used to hate the feeling, but now that I'm more experienced I don't get so worried by those ego-crushing thoughts. I just close my eyes and let myself drift away.