None of you are mentioning…
None of you are mentioning the yaw/g-sensor that the transmission uses to gauge hills for it shifting algorithm. Any time you disconnect the battery it needs reset. If you changed the ride height, it needs reset. My 2018 Tacoma was shifting erratic after a leveling lift and slight tire increase until I reset that and boom! No more excessive downshifts.