Racing-thoughts Definition

noun

(psychology) A series of uncontrollable thoughts that switch rapidly between ideas, a symptom of bipolar disorder, anxiety disorders or other mental illnesses.

Once the racing thoughts began, I had trouble concentrating on any subject and I felt like I couldn't think at all.
Wiktionary