I removed another erroring and WIP mod from my save for a while, now I get the following error when deconstructing empty mining drills:
Error while running event tycoon::on_chunk_charted (ID 115)
Unknown entity name: deep-lunaris_coal
stack traceback:
[C]: in function 'count_entities_filtered'
__tycoon__/primary-industries.lua:150: in function 'place_primary_industry_at_position'
__tycoon__/chunk-charted-handler.lua:91: in function 'on_chunk_charted'
__tycoon__/control.lua:115: in function <__tycoon__/control.lua:114>
Looking at your code I believe it will be due to the resource name cache linked below not clearing or resetting itself during on_configuration_changed(). https://github.com/bahrmichael/factorio-tycoon/blob/3606f97ecf0477bb2fb1f7c13533532e6dfdbccf/primary-industries.lua#L5