We had a sump pump failure shortly after moving into the new house. We paid for the system that has 2 pumps and 2 floats with alarm and battery back up.
Not cheap but a flooded basement is awful. Insurance won’t cover it and you have to declare it when you sell the house.