Hi @Yesh Rajawat,
Thank you for posting in this community.
I tested it on my side but unfortunately, I wasn't able to reproduce your problem. Your problem seems to be an uncommon one.
However, we can work together to narrow down and resolve the situation. So, please kindly provide more information below to let us work further.
1.please check the account of user is similar to user@yourdomain.onmicrosoft.com. (I know it's simple, but sometimes the wrong suffix can cause this problem.)
2.Are other users with permissions facing the same problem? View through another computer or account.
3.Whether all SharePoint sites have the same problem? You could create a new SharePoint site to check.
Alternatively, we can use SharePoint Online Management Shell and PnP PowerShell to connect to SharePoint Online. If the problem persists you can use one of these two methods to connect to SharePoint Online.
Please follow this article to use SharePoint Online Management Shell to connect to SharePoint Online:
Get started with SharePoint Online Management Shell
Please follow this article to use PnP Powershell to connect to SharePoint Online:
How to Connect to SharePoint Online using PnP PowerShell?
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
Your time and patience will be appreciated in advance.
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.