Just a minor idea, sometimes the machine spawns over an ore field so if it could be nudged away from it until it's in the clear? For example you could start reading generic size of the field just roughly and then average it's center point. That gives you direction vector where to nudge to, until no ore is unbeneath.
Currently the mod is deleting everything below, even spawning grass under it over waters. This is fine behavior too, but it is a little inconvenient inside an ore field. You need to get both the ore and the inputs and outputs of the machine through same space. I have very large area miners and mining vehicles that may do the trick, but vanilla miners would have it much harder.