Please check the logs and also send me the custom game preset you are using. Everything is in the user folder:
Open the game folder ("Distributrains"), then open the folder named "user", then open the folder with your user name.
The logs will be called out.txt, err.txt, and log.txt (not all will be present). Please send me their contents after causing a crash, before starting the game again, if possible. You can use a service like https://pastebin.com/ to upload the contents and post the link here.
The custom game presets are in the "conf" folder. If you haven't saved it to a preset slot, the file of interest will be "lastUsed.dat". You can use a service like https://wormhole.app/ to upload the file and post the link here.