“Overthinking” refers to the process of repetitive, unproductive thought.
https://www.berkeleywellbeing.com/overthinking.html