I checked the error is happen when a oil field is destroyed.
and I find out 2 solutions.
First solution is complete beam effect before the oil field destroyed.
I think this effects almost nothing to mod behavior.
In control.lua of this MOD,
move line 330 (add_beam ....) to line 323 (before entity.destroy)
Second solution is don't destroy a oil field, and I think this is better.
To keep minimum 20% instead of destroying, as the default game do.
In control.lua of this MOD and,
Change Line 324 : "if new_value <1 then" to "if new_value<60000 then"
Change Line 325 : "entity.destroy()" to "entity.amount=60000"