To add onto this. This seems to happen when deconstructing things that yield multiple different items, even vanilla coal rocks (they give both stone and coal) can sometimes crash with this error. SE meteorites, K2 crash site machines also give a multitude of items.
Same error when mining a Space Exploration meteorite with blueprint shotgun:
The mod Blueprint Shotgun (0.0.3) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event blueprint-shotgun::on_script_trigger_effect (ID 155)
LuaItemStack API call when LuaItemStack was invalid for read.
stack traceback:
[C]: in function 'index'
__blueprint-shotgun/scripts/mine/entities.lua:96: in function 'process'
blueprint-shotgun/control.lua:169: in function <blueprint-shotgun/control.lua:90>