Hello, I have met such issue before, and I have tried to unlock the file , here are mt steps:
Step1: Locate your Word or Excel file with said error.
Step2: Right-click on it and choose Properties.
Step3: Look for Unlock button in the General Tab. Click on it to unlock the file.
And my friend also rceommed a program called Bitwar Data Recovery to me, I also tried it, and I accidently find that it’s a fantastic program, so if you still cannot find the file with the steps, you can also apply this tool.