Keep the internet connection available to both gateways in a failover pair. The UniFi WAN Switch RJ45 lets two UniFi gateways in Shadow Mode High Availability share a single ISP connection, with dual internal power supplies so the switch itself is not a single point of failure.
Ubiquiti UniFi WAN Switch RJ45 for Shadow Mode HA - 3x 10GbE, 1x 1GbE, Dual PSU, 1U Rack - Silver - USW-WAN-RJ45