Lost connection to API

You may be having the Cloudflare crash problem that others are reporting. From your debug log:

DNSSEC=true
PIHOLE_DNS_1=127.0.0.1#53