These internal conversations you have are sometimes referred to as "rumination" or "chatter". Here are some links you might wish to visit that have tips that have helped me somewhat.
https://www.bbc.com/news/magazine-24444431
https://behavioralscientist.org/how-to-channel-your-minds-in...
Wish you all the best