The biggest problem with Ubiquiti and Pi-hole is that if the Pi-hole server goes down, the DNS server in Ubiquiti will stop functioning properly. If you want to set up failover, in practice this is impossible. Adding a second DNS server in Ubiquiti will result in Ubiquiti using them alternately...