What I do when I get bad thoughts is to go to sleep, I feel a little better when I wake up. But some people have a hard time sleeping so that may not work. Try and distract yourself maybe? I'm not good at dealing with thoughts, I just avoid them by sleeping or distracting myself.