Welcome to Microsoft Q&A!
Thanks for reaching out your query.
The reason your Teams and SharePoint connections expired after 54 days is due to how the system manages authentication tokens. These tokens need to be refreshed periodically, and if the refresh token expires, the connection needs to be reauthenticated.
Recently, Microsoft may have updated their security settings, which is why this is happening more often now.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.