A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi @sns
This case is a bit stange and I could not reproduce it, as a workaround, if you are going to connect to a SharePoint Online site, you can use the PnP cmdlet Connect-PnPOnline. For example:
1.Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/yoursitename
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.