Yes, I have had severe head pain that lasts days/weeks. I also have severe PTSD, anxiety, insomnia..etc, ad nauseum.
There are some medications that may help with this. If you decide to try this route, please make sure to go to a highly recommended neurologist (there are new meds out that can really help with migraines) and/or a psychiatrist. One way to do find a good psychiatrist is to ask a good therapist who they would go to if they needed help.
Sometimes I try hypnosis or guided meditation on youtube.
I am sorry you understand this kind of pain, it is excruciating.
On edit: That guided meditation/hypnosis was done at truly desperate times for me. It did help for a bit, but has not been a long-term solution. Everyone is different. I hope you feel better soon!