You're getting the error because location /
already exists in one of the included files (e.g. common/php74.conf
depending on how you set the site up - you can find common at /etc/nginx/common/
).
So you'll have to customise/combine rules as appropriate for what you're trying to do.