Discourse have backup tokens, which are to be used if you lose your OTP device.
You can also register the OTP in multiple devices.
FIDO2 keys can also be used, and Discourse support using multiples, so you can have backup keys stored in safe places, your main one, and the ones who are backed into your device, like Android fingerprint and Windows Laptop Hello devices.
If you did neither, you will have to contact the admin team and ask then to disable 2FA on your account.
Now here is the complete solution to disable OTP for a user when they lost their ways back in: you must remove both the totps entries and the backup_codes as well, so that the call to #totp_or_backup_codes_enabled? returns false.