You shouldn’t run the tool as root. It will call sudo as needed for what root-level access it uses. The error is that it’s trying to install Homebrew, but you don’t want to do that as root.
Either install Homebrew manually as a normal user, or run letsencrypt-auto with your normal user account.