Welcome to the Bitcave! Nerdiness, Jokes, Mods, Ideas, and coding!

I assume it’s gravel falling into the hole that’s the problem? because if so just use a while loop to mine up until there isn’t a block above it, that way it will mine out all falling blocks directly above it while excavating.