I like your mod very much, as it seems to be the only one still working correctly in 0.17 when it comes to infinite resources. The others rely on yield which heavily increases the output per second for all the miners etc.
I changed the mod to only update oil fields based on the timer.
All ores (and possible other resources) are still on the 'when depleted' setting.
As there are very few oil fields, could that be the solution for the lag spike problem?
I used the by-name-filter that's available for surface entities.