For myself I have battled it for years and by making some changes I can say I am better at keeping it at bay. The first thing is to come to the realization that it will always be there waiting to creep up on you. A few things helped me. 1. Shoot less often, if you are shooting crappy, nothing will prolong it than shooting often and ingraining the behavior deeper. Shoot less often but make every shot a million dollar shot. Put everything into it, focus hard and don't shoot unless everything feels right.
2. Pay attention to your form, are you really anchoring in the best position or is your alignment way off, indirectly killing your form. My issue was my draw elbow was not in line with the arrow, simply by shifting my anchor gave me a firm back feel that gave me greater confidence in my shot.
3. Work on your focus and how to really block everything else out expect what you want to focus on. Some people focus on the target, some on the gap, some on the arrow, some on both, you decide, but focus.
4. Many people including me are aiming the second they place an arrow on the string and bring attention to the target, as they go through their sequence the anxiety builds and a rush to shoot signal goes off. I dealt with this quite often but worked through it by using drills without shooting.
In the end the journey is yours, don't be afraid to commit to the challenge.