I'll echo SW on this one.
All of my 'autopilot' moments were preceded by a conscious and sometimes audible 'f it!'.
In other words, I CHOSE to relapse. I CHOSE not to pivot away from alcohol and do the work of change.
When I really CHOSE sobriety, it started to happen. When I'd honestly decided to EMBRACE SOBRIETY AND LIFE (As opposed to 'try to quit') then relapsing came to an end.