I've had those feelings before.
I felt odd trying to explain it to my doctor.
It is a fairly common, yet not medically documented, event that can be experienced by patients on meds for depression, anxiety or other chemical balancers.
The term for what I experienced: Brain Zaps.
It's like an electrical surge zaps through your head. It was crazy.
I've experienced it a few times over the past year as we (doctor and I) have been adjusting some of my meds.
I have found it helpful to take the medication at the same time each day, and with food in my stomach. I can get brain zaps if I take meds on an empty stomach.
I'm glad you consulted with a doctor about the symptoms you were experiencing. I hope you will continue to pay attention to your body and get the help you need.