FAILURE: Unable to retrieve an access token for the Azure AD identity provider

We tried solution that provided by you for this issue based on earlier chat. But we are still facing the same issue even though we have given the correct Metadata (tried both V1/v2 azure endpoints). We are using public key/private key instead of client secret.