Configuring hardware failure detection and protection