I was just troubleshooting a similar crash caused by mods.factorio.com/mod/AbandonedRuins-ruinsnova not having proper dependencies causing mods.factorio.com/mod/AbandonedRuins_updated_fork to crash. items inside containers don't have error protection from bad ruins blueprints.
to fix this, in spawning.lua , change
if extra_options.items then
local items = {}
for name, count_expression in pairs(extra_options.items) do
local count = expressions.number(count_expression, vars)
if count > 0 then
items[name] = count
end
end
util.safe_insert(e, items)
end
end
to
if extra_options.items then
local items = {}
for name, count_expression in pairs(extra_options.items) do
if not prototypes[name] then
util.debugprint("item " .. name .. " does not exist")
return
end
local count = expressions.number(count_expression, vars)
if count > 0 then
items[name] = count
end
end
util.safe_insert(e, items)
end
end