He switched to Rack and Pinion to overcome toque/wear/contact issues which seems like it should be reliable. I like his mechanical end-stops, but if he is serious about wanting a commercial version, I wonder if there's a way to count "steps" as the gear moves over the rack (e.g. hall effect gear tooth sensor[0]), and just slow/stop based on a predefined end-point? The same sensor would also likely function as a fault detector (e.g. stop engine burnout if the train gets stuck), and you won't have plants/debris potentially setting off the mechanical end-stops (plus reducing parts and points of failure).
[0] https://sensorso.com/rack-gear-count.html?filter=inventory:2...