This.
I have this issue, and realised it was the door switch. I open it and wiggle it a bit until I see the door open light on the dash, hold it a second or two, then just leave it. Doing that stops the car auto locking.
Of course I have a door switch to go on the car, but I’ve not found the...