Need port 8443 for Unifi controller

if you are on V6. You can modify in the config file located at /etc/pihole/pihole.toml

Consolidated Configuration Files

Introducing Pi-hole v6 - Announcements - Pi-hole Userspace

Otherwise post a token so dev. or mod. can assist with your issue.