Migraine goes away only when I throw up😭

Bee🐝

I have really bad headaches to the point where no medicine can help, the only way it starts to go away is when the pain eventually makes me throw up. Does anyone experience this? Or have any idea why it happens?