In early sobriety, our brains and bodies go through quite a period of readjustment after years of frontal assaults by alcohol and/or drugs.
I went through an inpatient treatment, joined AA, got a sponsor, worked the steps, tried to do 12th step work as best i could and hung around people who had been sober for a long time.
All of these efforts were helpful antidotes to the mental fog which seemed to have set in, which included, of course, the racing, competing thought processes you described.
We're glad you're here with us.