Sounds like you have the thought stuck in your head, it can help to complete a thought record (I would recommend this 7 column one from get.gg https://www.get.gg/free-downloads-alphabetical-list-of-cbt-worksheets-information-sheets-n-to-z/ ). Doing something like this a few times can weaken the thought by addressing the emotion behind it and the lack of evidence for this on an ongoing basis. If the emotion is shame or guilt say, by finding evidence of times where you were very competent and confident can weaken those feelings by showing this as a one off.
Things that take place over too long a period of time. Like heart disease, injustice, climate change, diabetes, addiction etc. We’re evolved to prioritise short term pleasure over long term benefits, hence that cigarette, drink, line, burger is so difficult to say no to.