when i switched a train from manual to auto, i just got the same crash message, but at line 13 ...
of course, there are lots of opportunities for conflicts since i am testing which mods i might use on my next map and have installed several trains mods. what i did before the crash: started a new map after updating all mods to the newest versions, set up a stacker with stations from LogisticTrainNetwork, put down some diesel trains and some junk trains, fueled them and gave orders, and as soon as i clicked on the first train to switch to auto, the map crashed (back to the main menu).
after disabling this mod and loading the last autosave, there were no other conflicts or crashes between other mods when i switched trains to auto.