Hello @IDKwhoIM
This error usually appear when the files or folder are in use by a service or process. You will need to make sure that changing permissions will not affect the functioning of other applications or services.
To resolve this you can perform a clean boot, or boot in safe mode:
https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-a97a1807f3dd
https://support.lenovo.com/hn/en/solutions/ht105328-f8-or-fn-f8-key-not-able-to-enter-safe-mode-in-windows-10-thinkpad
Hope this helps with your query,
---------
--If the reply is helpful, please Upvote and Accept as answer--