As does Psilocybin in Magic Mushrooms. Back when we used to sell the stuff (UK, 2005 or so), we had a small 'lab' (a grand term) run by someone who suffered serious cluster headaches and had gotten involved with us through our selling of 'shrooms.
We used to sell to quite a few people who similarly suffered from the condition, and used mushrooms to treat it - but it was an impossible thing for us to market or advertise, due to the way the MHRA (Medicines and Health Regulatory Agency) dictates what beneficial claims can be stated about retailed items.
On the other hand if you have a migraine while tripping, it's not great. Taking triptanes is, well, risky as their interaction has not been thoroughly researched (i wonder why) and they both do stuff to HT receptors - so it's probably safer to endure the trip and take drugs afterwards. Good thing is that on LSD it is not "you"that suffers, just someones' body ;)
https://www.sciencemag.org/news/2011/06/lsd-alleviates-suici...