This might help:
I got a similar error upon starting factorio when only having AAI Programmable Vehicles, its dependencies AAI signals and Informatron along with Colony Builder active. The error reads:
"Failed to load mods: ...ammable-vehicles__/prototypes/entity/entity-deployer.lua:55: attempt to index field 'chest' (a nil value)
stack traceback:
...ammable-vehicles__/prototypes/entity/entity-deployer.lua:55: in main chunk
[C]: in function 'require'
aai-programmable-vehicles/data.lua:14:in main chunk"
Similarly, if I have the Py mods and Colony Builder it errors with:
"Failed to load mods: pyindustry/prototypes/circuit-connector-definitions.lua:23: attempt to index field 'inserter (a nil value)
'stack traceback:
pyindustry/prototypes/circuit-connector-definitions.lua:23: in main chunk
[C]: in function 'require'
pyindustry/data.lua:7: in main chink"