Hey I'm really sorry dude

I know what you mean by "living hell" in regards to debilitating headaches, they can create all sorts of horrible emotions..sometimes they're so overwhelming for me that I feel like I'm drowning, or being suffocated. Very often, I experience a lot of shame whenever I feel debilitated by a headache.
I started getting headaches after I started having my first mystical experiences a few years ago. I have no idea what causes them...what are your headaches like? Are they painful, or "pressure" oriented, or both, or neither?
My advice:
First: have some hope, will ya? And don't be ashamed about this!

Second: exercise! I get the feeling that, like many (if not most) people, you center yourself in your head, so naturally you're focusing on these headaches all day long. Meditation for you is probably a really mental, head-oriented exercise, so I would look into physical activities as a "way out".
Third: If you're in a relaxed, peaceful environment (or whatever environment you feel comfortable in honestly), try this exercise. Stop running from your headaches. When one comes up, let all of the sensations that come with it happen (even if some of those seem awful, such as confusion). But NOT with a mindset of "Okay, I'm going to let this headache do its thing, and then it will go away. Why isn't it gone? Oh god, why isn't it gone yet?! This is just making things worse!!!". Just surrender to your headaches. Let them have their way with you...that sounds horrifying, right? But I swear, man, this is all in your head, and if you can stop taking this problem so damned seriously, you'll watch it evaporate in the blink of an eye. And it might come back later, but that experience of seeing if evaporate is extremely valuable. So when you get a headache, lie down in a calm environment, and just let it run its course. EASIER SAID THAN DONE, i know. But, this has been helping me lately. I do this with a lot of negative emotions. If I feel "out of it", I let myself feel that way...if I feel angry, I let myself feel that way too...if I'm anxious, I let it happen.
Fourth: talk to your friends about these problems. Don't be ashamed. Be totally open about your symptoms! Just do it dude, unless they're TRULY heartless bastards you have nothing to lose.
Fifth: I think some thoughts are contributing to these headaches, SUCH AS the idea that breaking celibacy is causing them. I doubt that it is...I think you just think that, and are experiencing "confirmation bias" (or some other fallacy). But if you don't feel comfortable thinking that way (it's fine if you don't!) then just focus on the points I brought up above.