The resistor failure may have been caused by transient voltage spikes that occur during derailments. These spikes can approach 100 volts and are generated by the collapsing magnetic fields of coils in transformers, solenoids, electromagnets, etc. when the power is suddenly interrupted.
Do you have TVS (Transient Voltage Suppression) diodes installed on your layout?
If not, they're highly recommended to prevent damage to sensitive electronics like those found in modern locomotives, fastrack switches, etc.
Also, if you do need to replace the control board in the switch, they're only about $23
Here's a link to the part from Lionel: