The problem is all in your mind. It really is. But the problem is not that there is a mind. There is, and that's okay. There's no point in railing against the mere possession of mental apparatus. It's there. Get used to it. And the problem is not that we are conditioned beings, run by those computer programs in our heads. We need them. We need both the hardware and the software.
And the problem is not with the Microsoft of the mind, either, the operating system. Maybe you can wing it with open source, but you need some kind of OS, replete with an identity (ego) on the network.
No, the problem is the bugs in these programs, the ones that cause us to fall into infinite loops of obsessive thoughts. When we consider our thinking patterns, we should look for places where some unforeseen condition causes us to unreel on endless journeys into the labyrinth. What we need is to add error trapping to our programs so that we have an out when these conditions occur: that will stop the thoughts from getting too loopy.
Give yourself an escape clause! Program your problems away!