All in the mind
It takes calmness, a hard thing to find in the modern man.
Learned years ago on the basketball free line. Don't over think hitting the target. Seeing it is enough. Be calm. Maybe let out a breath before you shoot. And repeat the same movement over and over.
You practice it, again and again.