I have been getting those weird electric shooting feelings in my head too. Not when I'm asleep, but like every time I stand up or bend over. They start in my brain and go through my whole body.
It's pretty unpleasant, but not that painful, and it doesn't seem to affect my performance.
After reading this website, and a few others, I believe it must be related to taking SSRI's and/or SNRI's. I have recently stopped taking Cymbalta and then this started. Come to think about it, it's happened before and I've been taking Cymbalta, Lexapro, Tramadol, and a few others for about five years (not at the same time).
I don't expect the manufacturers of the meds, or the doctors, are going to admit this is going on. My opinion of the entire medical profession is that doctors would do better if they listened to patients instead of to advertisers.
I intend to get off all the meds, and I intend to do it by myself with no help from doctors. All they do is push more pills. I am sick of all the publicized and unpublicized side effects. The legal pills are apparently more dangerous than the illegal ones.
So, in a nutshell, I have become convinced after five years of searching the internet (and a Master's degree in neuropsychology), that the shooting electric sensations and a lot of other weird neurological effects are due to selective serotonin/norepinephrine reuptake inhibitors; antidepressants. Thank you for posting your experience. Every little bit helps.