Now I'm sure you didn't read the Release Notes for Pi-hole v6 and you also didn't search the forum for nginx configuration for Pi-hole v6.
Your nginx configuration for "PiHole (5.x.x)" won't work for Pi-hole v6. You will need to create a new one.
EDIT:
This is just one of the examples of nginx configurations users are using with v6: