Hello
Did the issue only occur with the specific file or all the files?
If the issue occurred with the specific file, we could try to open adminsitrator command line and run the following command line to get permissions to the file.
takeown /f filename
icacls file /grant Administrators:f /t
If the issue occurred with all the files, there may be something wrong with the system.
We could open administrator command line and run "sfc /sacnnow" and "dism /online /cleanup-image /restorehealth" to check the health of system files.