Brain zaps are a common side effect after high/long doses of MDMA
Sounds like coming off SSRIs and post-MDMA usage have something in common