"Server error occur, contact administrator" when disable webauthn register & passwordless

Hello everyone,
we have a problem that is so complicated, namely when we turn off the “Webauthn Register / passwordless” feature it appears error “Server error occurred, contact administrator”, we deliberately turned off the feature because if the feature is active the error appears “Security key registration result is invalid.
WebAuthn is not supported by this browser. Try another one or contact your administrator.” is there anyone here who has the same problem? please help us, thank you.