I totally identify. For me, it usually happens when I am in pain and/or in a state of hyper vigilance.
Something must be fixed and it must be fixed now! I can think of nothing else. I feel a little insane even, but the feeling is so real and urgent, it's nearly impossible to ignore or let alone. It wipes everything else out of consciousness.
Again, speaking only of my reality because I never want to tell anyone theirs, it's completely tied to my PTSD condition and is not reflective of actual reality.
In reality, there might be a situation I would like to see go in a different direction. If I were not in fight or flight intensity, I would have perspective and could make an intelligent decision , but there is no perspective when I am obsessed.
Getting out of it is tough! Doing an honest self assessment of where I am at PTSD-wise helps. Then a still, small voice says, Wait until perspective and rational thinking returns. In the meantime, do what can give perspective. Get the insane laser focus off. Sometimes an intense work out helps me or talking with someone or doing something that gets me out of myself. My favorite novel is good to reread.
If you can step back maybe it would help, but I don't know what would work for you to pull you out. What has the power?