There are a lot of good suggestions here. One possible cause could be a magnetic field being set up by current passing through the rails.
This could be causing the reed switches to randomly close. Or magnetic coupling into the long leads. Google "Right Hand Rule"

It would be easy to test. Leave everything connected as is, but move the reed switches a few inches away from the tracks.

Hope you figure it out