A lot of people get affected by some mental trap. There is a remarkable cure for this from Rav Nahman of Breslov: i.e., the prayer of Chavakook the prophet. That is the last part of that book. You can find this in the Bible in the minor prophets.
The fact is that nowadays with the whole world going insane, this seems like a good idea for people to say and even to say it as they are walking on the street. For the Evil Inclination, the Satan is attacking everyone in their thoughts. Bringing people to think exactly the things that are wrong and hurtful for them to think. This is a new technique of the evil inclination. For in former years people had to seek out evil ideas and insanities. Now these same evil thoughts come to everyone uninvited.
[the prayer is השם שמעתי שמעך יראתי השם פעלך בקרב שנים בקרב שנים תודיע ברוגז רחם תזכור Load i have heard about you and i was afraid. Lord you works are in the midst of years, in the midst of years let there be known, in anger remember to have mercy, etc.]