I remember when I was younger I took a nap and had a dream where I ended up in a car accident. I was thrown from the car and landed on some power lines, which woke me up instantly. Immediately after, I felt a strange sensation that I can only describe as my brain's attempt at simulating what getting electrocuted feels like....even though I was awake.

It was too long ago for me to remember how long it lasted but if I had to guess it was about 10 seconds, like your experience.

Brain, why you so weird?