There sort of is a feature request for this over here, although it confusingly only asks for erasers. It probably makes sense for someone to create a proper feature request for anti-overflow and move the votes there.
I also commented there about how this feature works and appropriately-licensed code that could be ported to Krita if someone is interested in contributing it.