When using own custom password policy for the user instead of default password policy, the error messages refers still to the default password policy.
We have a default password policy with 7 characters, 2 numbers and 1 upper case character. Then we have own policy for the user with 6 characters 3 numbers and trying to set new password 'Pass12' for a user ->
"That password is too trivial. Please enter at least 7 characters including: 2 numbers and 1 upper case character" instead of correct message:
"That password is too trivial. Please enter at least 6 characters including: 3 numbers."