Hi there,
The best way to resolve this would be a check disk command, you can try the other troubleshoot like moving the inaccessible files to any other location. Right-click the folder or files that you can't access and copy or cut them. Now, go to any other drive and paste your data.
The next step would be to error-check it. In the Drive properties Under the Tools tab, you can view a feature for "Error Checking". Simply click on the "Check" button here.
If the reply is helpful, please Upvote and Accept it as an answer