The documentation provides incorrect examples for the maximum number of failed logins.
Use this example:
create role intern_role with passwd "temp244", max failed_logins 20
Disregard this example:
create role intern_role with passwd "temp244", maximum failed logins 20