Hi, dear!
Have a good day!
If you need to change the number of password attempts, run the gs_guc reload -c failed_login_attempts= times command.
If the number of password attempts is set to 0, the number of incorrect password attempts is not limited.
Best wishes!