You need to change the default number of days an Office 365 password expires in.
This is done using the Office 365 portal.
- Login to Office 365 with Global Admin credentials
- Click on the Admin Tile
- Expand Service Settings
- Click on Passwords
- Adjust the Days Before Password Expires. Max is 720 days.
- Click Save