The %1!s! operation is not allowed. The operation attempted to change the configuration of availability replica '%2!s!' to ...

The %1!s! operation is not allowed.  The operation attempted to change the configuration of availability replica '%2!s!' to the asynchronous-commit availability mode with automatic failover, which is an invalid configuration.  Either change the failover mode to manual or the availability mode to synchronous commit, and retry the operation.