Hi @Mohammad Qasim ,
When you sign in to the site by using your Office 365 credentials, make sure that you select the Keep me signed in check box.
Please refer to this article: https://learn.microsoft.com/en-US/sharepoint/troubleshoot/administration/troubleshoot-mapped-network-drives
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.