Do you know the bit about:
A butterfly flaps it's wings, releases some pollen, which tickles a squirrel's nose, which sneezes, which startles a moose, which creates a stampede...
I think that's a lot like the human brain. It's not always easy to tell what is causing what. To do so would probably take quite a lot of MRIs and other tests. So I'm inclined to agree with everyone else here and suggest that you simply speak to a medical doctor and tell them what you've been experiencing to make sure it's not a serious problem. You might also get something to treat the shocks while you're detoxing.