You need to configure the Password Expiration Policy. Sign in to the Microsoft 365 Admin Center. In the left navigation pane, expand the Settings section then select the Settings option. Click on Security and Privacy. Select the Password Expiration Policy. Ensure that the checkbox labelled Set user passwords to expire after a number of days is ticked. Enter 100 in the Days before passwords expire field. Click Save changes to save the changes.