After your post I thought I would look to see what published research I could find on the Yips. You will see that my oversimplification of the Yips is rather foolish although I knew I was simplifying it to some extent.
There are 47 publications investigating or reviewing the research in the field from 1989 to present. The majority of the research focuses on golf although many sports can be affected. It is acknowledged, without direct reference, that it has been known to occur in basketball.
https://pubmed.ncbi.nlm.nih.gov/?term=Yips[Title/Abstract]&sort=
The most recent of the publications is a "Review" of the literature on the Yips, meaning they discuss what they understand is known by the breadth of the research on the topic and try to promote/guide where they think researchers need to move forward with their research. These kinds of publications don't present new data just potentially new thoughts and perspectives for other researcher to run with and guide new research. Here is the article, it is a bit long but reading the first page:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8698216/ including the Abstract (essentially a summary of the publication) is worth it for the curious.
I'll finish with throwing in some of the vocabulary I learned while looking up the research.
Dystonia=movement disorder characterized by involuntary contraction of muscles
TSD=
Task Specific Dystonia=a form of focal dystonia that occurs in the context of the performance of selective, highly skilled, often repetitive, motor activity.
SRD=
Sports Related Dystonia (sub group of TSD)=which may include the
Yips