Hi there,
Disable password expiration and see if it helps
https://learn.microsoft.com/en-us/microsoft-365/admin/manage/set-password-expiration-policy?view=o365-worldwide
You can also try out these below steps
Click your Start Button, then just type cmd
Right-click Command Prompt and choose 'Run as Administrator
Paste this command into Command Prompt and hit Enter
net accounts /maxpwage:unlimited
Then close Command Prompt
---------------------------------------------------------------------------------------------------------------------
If the reply is helpful, please Upvote and Accept it as an answer