Try focusing on your breath. When you take that brief moment to think its possible that you hold your breath a moment which triggers your body to wake up. I could be wrong but its plausible, I experienced it before.