What you are describing is my child's worst version of OCD. The non-medical name is Brain Lock. I believe that is the name of a book written on the subject. Try Amazon. It is more severe than ADD mind drift. The drug that helps stop it for her is Atavan an anti anxiety med. My child takes it as needed. You have a neurological disorder in the high end of anxiety specterum as was described to my child. Not many Psych MD's are familiar with this disorder. If by chance your live in Mass., McClane's Hospital/Clinic is the ONLY center that specializes in this BUT you have to commit 3 months living there for the residential treatment. My child could not give up college and life so has to work with the therapist who was trained there. Too many psychs relegate this to the realm of psychotic disorders and try to treat it that way which is to me malpractice. It is not psychosis and antipsychotics don't help so be careful. The resident psych who just weighed in? What do they teach in med school about OCD 'brain lock'.