The mind uses negative emotions to distract you and to control you. If you are to change your thoughts then begin by letting go of the negative emotions.
Develop a tolerance for not succeeding because it’s within the trial and errors of not succeeding where the richness of imagination and creativity flourish.