It is quite easy to minimize the risk of overflow by utilizing two float switches. One switch is to control top off pump (connect through a relay) and the other will trigger devices that only kick-in (or switch off) during emergency. E.g: switch on emergency pump, open gravity-fed valve, switch off return pump etc...