I got the above error after updating to the latest Krastorio 2 version(0.9.12).
The previous version(0.9.11) was working perfectly.
I removed all other mods and tried to load the game with only Krastorio 2 and it is the same error.
I am running 0.18.18 version of Factorio.
factorio-current.log
https://pastebin.com/y7DePmkL