I struggle with this often, too.
They usually go away when Iβm fully absorbed in something else / flow state.
Having a really good conversation or creative accomplishment as part of the flow state can give a protective effect.
I also pray for the renewing of my heart and mind, and to see people and things the way God does, more at these times.