you donāt need certbot installed for getting the snap encrypted. Nextcloud snap includes a service for automated HTTPS encryption and renewal using Lets Encrypt, self-signed certificates, or custom certificates.
be sure to remove certbot sudo snap remove --purge certbot --classic when using the included Nextcloud snap encryption service. you canāt have both services running!