Sometimes the thoughts that bring you comfort aren’t good for you