Found a bug if combined with this mods:
Project Cybersyn: https://mods.factorio.com/mod/cybersyn
Shuttle Train Refresh: https://mods.factorio.com/mod/ShuttleTrainRefresh
To reproduce you need to call an electric train as shuttle train to a Depot Station from Project Cybersyn.
Crash occures at the moment the train arrives at the station.
Error while running event ElectricTrains::on_nth_tick(23)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function '__index'
__ElectricTrains__/control.lua:212: in function <__ElectricTrains__/control.lua:203>