but I have read many posts here on this forum about someone's engine electronics being fried after a derailment or short on the tracks.
Odds are that any boards that get fried due to derailments are victims of poorly-resonding or nonexistent over-current protection, rather than voltage spikes..