How do I change password settings?

This is done through the admin client.

Please note that password settings are not individually customizable, but instead applicable to all Matrix users within your organization.

When you want to change the password settings, you can do so by going to Server settings and then Password settings. See all explanation for the different password settings options in the manual.