So Lemmy's 2FA does not provide a means of validating 2FA setup before enabling it. This can quickly lead to a situation where you get locked out of your account. So, read the link.
And if 2FA still breaks on you, ask an Admin to disable 2FA on your account.