I would spin up a new vm and start over, but in any case, you can try to remove nginx.
apt remove nginx
You need to leave discourse with access to port 80.
It is a good bet that you have hit let’s encrypt rate limits. You’ll likely need to use a different subdomain or wait a week.