Does the web client have the same problem? If there is no problem on the web client, you could clear the cache or reinstall the client.
Besides, you can also use the self-help diagnostics in Microsoft 365 admin center to see if it would return error messages: Run Tests: Unable to access files in a team
For more details about you don’t have access to this file, you could refer to this article.
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.