Does this problem happen with all file types (Word, Excel, PDF), or only with Excel files?
Could you please confirm if you’re signed in with an administrator account? Right-click the app ( Excel) and select Run as administrator, then try opening the file again.
Please try repairing Windows using the recovery option go to Settings > Windows Update > Advanced options > Recovery, then select Fix problems using Windows Update and follow the prompts.