Yes, I do understand you. And you're right the more you think about it (or try to stop thinking about it!) the more it persists.
Though I haven't been advised by a psychologist about how to deal with it, I have been doing meditation and I go back to some of the words or breathing techniques and offer myself gentleness and self-compassion AND I've been doing this throughout the day. So when I found myself in a situation where I was meeting new people and those thoughts didn't happen... which was great!