I don't have an answer for you, but I hope you can talk to somebody about what you're going through, if you haven't done so already. That sounds really difficult.
Do you have anything to distract yourself with when you experience this sort of thing? Distractions help me a lot. I like going out for walks, for example, or watching a complicated movie that requires a lot of thinking.