You might see if there is a private company that could monitor your power for a reasonable cost.
Alternatively, you could buy a constant voltage transformer for your trains. These are also called resonant transformers. Sola used to make them.
Another alternative is to get a UPS for the trains.