Thank you for your question. The mind is a complex discussion as the thoughts that you hear in your mind have roots in other aspects of your personality. There are also outside influences that can affect your mind. When it comes to bad thoughts, the most effective strategy to ignore the thoughts, especially at the time. If you don't do this thinking over the thought, inadvertently causes more damaging thoughts and a person can get into a mess.
When the thoughts have silenced, you can think about the traits you need to work on. But try your best not to hold onto any negative thought. Rather, use them as signs to work on what is beneath them. If a thought is completely uncharacteristic of yourself, ignore it completely.
May you always be successful