It was a new 0.17 game and the train and refuel chest had 'solid fuel' as fuel.
I've made a minimal save game with just train scaling enabled that produces this crash as soon as the train hits the train scaling station. I've replaced just about everything except for the station. Its a new train with wood as fuel and wood in the refuel chest. There is no crash if I remove the cargo wagon. The error is slightly different now but I'm guessing its still the same.
https://drive.google.com/open?id=1TvZ9nmBIo4aR5DCFfV0LFWEpjfzJ8bFe
Error while running event train-scaling::on_train_changed_state (ID 23)
LuaItemPrototype API call when LuaItemPrototype was invalid.
stack traceback:
train-scaling/control.lua:1703: in function <train-scaling/control.lua:1493>
stack traceback:
[C]: in function 'newindex'
__train-scaling/control.lua:1703: in function <train-scaling/control.lua:1493>