I used to have similar problems. It was very annoying to keep having those feeling/thoughts unwillingly judge my actions.

Over the past year or so though, I have dedicated a lot of time trying to understand what the problem really is though.

The problem, is simply your EGO. Within you, the voice that gives that 2nd opinion or tries to justify things, is a diseased ego, which damn near every one has, but doesnt like to admit.

Think about it.

Lets say your OCD with being clean.. You dont HAVE to be a clean person, but within you, your ego is like "No! it must be clean! that is the only way to feel comfortable!"

The ego works in a type of "Fight or Flight" method.. If it finds it self being comprimised, it will scream out at you saying "fix the situation, make me happy!" in a type of fight mode

Or, you'll use flight, and if the situation is way too much the ego brings you fear, and run away or ignore or do what ever to not insult the ego basically..

I am very serious about this, because the more time you try to understand what the ego is, and how it operates and effects you, you'll begin to understand alot of personal problems exist because of your abusive and controlling ego.

Smoking pot helps me step "outside of the box/ego" and recognize things for what they truely are, and I can control my ego and be like "Nope, not gonna let my ego control my life/thoughts/actions"

Adventure into some psychedelics and you will truely understand the ego.
(Marijuana is a mild psychedelic)