If you don’t access you Microsoft 365 account from within monday.com for a prolonged period, Microsoft will prevent access to your account.
Any automations you attempt to run will fail with the following message:
For security reasons, your Microsoft 365 sign-in expired after a period of inactivity. Reauthenticate with Microsoft to resolve this. View https://inactivity.m365.app/ for more details.

From automations
Select your credentials field and click + Add new account to re-authenticate.

From workflows
Click + Add new account to re-authenticate with Microsoft.

From legacy automations
If your automation was created from a template looking something like the screenshot below, it’s an old-style legacy automation.

These do not use the native credentials feature, then you’ll have to add a Secure Embed, sign out and then sign back in.
This is detailed in Revoking access to Microsoft 365, under the heading “Revoking access for individual users”.
Once signed out of Microsoft 365, don’t forget to sign back in again. Having done this, trigger the automation again, and it should now work with the new Microsoft sign-in credentials.