Somewhere in my classical circles I encountered a cool trick for position shifts in general. The suggestion was to practice the shift in isolation (surprise to no one lol!), but to also practice it by doing repetitions intentionally going a fret too high as well as repetitions intentionally going a fret too low. The thinking is all that attention just really drills in the fret you really need to be on, since you’re now devoting time to intentionally ‘missing’ the shift.
How well that translates to these shredding speeds, I don’t know It was more a thing for complex chordal passages where the shifts were drastic or difficult. Maybe it will work in this context though.