Ask a Psychiatrist and Get Answers to Mental Health Questions ASAP
The behavior may be as a result of anxiety. There are some options to address that - 1/ hypnotherapy, 2/ auto suggestions (reprogramming your mind to respond differently in a given situation) The hypnosis can either be something you work with a therapist or use CDs (depending on what you want to do)
The auto suggestions would be something to formulate such as positive statements in the present tense such as " I perform well when on the golf course" I am relaxed and able to play well, etc) and when you have a negative though immediately resort to the other ones. These would best when done prior to bed or as you wake up while in a relaxed state when the brain is functioning at alpha brain levels.