Sounds like a migraine. I would check in with your doctor and be very honest.
Hey there...
I saw that you didn't have a response yet, and wanted to help if I could. I have never taken mdma before, but a google search lead me to www.drugs.com and here's a clip of what they say can happen:
MDMA users may encounter problems similar to those experienced by amphetamine and cocaine users, including addiction. MDMA damages brain serotonin neurons. Serotonin is thought to play a role in regulating mood, memory, sleep, and appetite. Research indicates heavy MDMA may cause persistent memory problems in humans; however, a 2011 study has reported limited cognitive decline in users of MDMA.1
Psychological effects can include confusion, depression, sleep problems, anxiety, and paranoia, sometimes lasting for weeks after taking the drug. Physical effects can include muscle tension, involuntary teeth-clenching, nausea, blurred vision, faintness, and chills or sweating. Increases in heart rate and blood pressure are a special risk for people with circulatory or heart disease.
Also, there is evidence that people who develop a rash that looks like acne after using MDMA may be risking severe side effects, including liver damage, if they continue to use the drug. Almost 60 percent of people who use Ecstasy report withdrawal symptoms, including fatigue, loss of appetite, depressed feelings, and trouble concentrating.
--Don't know if that answers anything for you, and all I can say is to hang in there. I read that it's right up there with meth and cocaine as far as withdrawals and quitting the drug. That's what I suspect; that you're in withdrawal. Please hang in there and know that you're young and you have a long life ahead of you; this is just a battle you have to fight now. Don't give up..the longer you fight, the better off you'll be. The head pounding doesn't sound so great-have you gone to a doctor yet? that should be your next step. Just know that you're not alone and that you have the ability to fight this. If you use again, you'll have to go through this all over again eventually. Get through this rough patch. You can do it!!