I went through this after my divorce. The term we used in therapy was 'unhelpful thinking'.
I've seen people sharing this tip on HN for dealing with tinnitus: Picture a volume equalizer or the FFT waveform and image yourself lower the volume until it goes away. In therapy after we unpacked the unhelpful thinking, we talked about 'rewiring' these unhelpful connections in the brain. We pictured a old style phone switchboard with wires, me finding all the unhelpful thoughts and rewriting them one by one. It felt very similar to the tinnitus tips and it was surprising effective.