The DLL might been in use and this is why you are receiving the error message. As you already tried to replace the files using the safe mode and the problem persists, you can try to replace the files using the Command Prompt.
Step 1: Create a system restore point, in case anything goes wrong you will be able to restore your computer. You can see at this link how to create a system restore point.
https://support.microsoft.com/en-us/windows/cre...
Step 2: Create a new folder on C: and save all DLLs that you need to replace.
1-Open the File Explorer
2-Click on "This PC", then open the "Local Disk C:"
3-Right-click on an empty area and select New > Folder
4-Enter a name for the folder like "DLL" and press enter to save the change
5-Save all DLLs inside this folder
Step 3: Replace the DLLs using the Command Prompt
1-Restart your computer while holding the "Shift” button
2-The Advanced Startup menu will open on the boot.
3-Go to Troubleshoot.
4-Now, go to Advanced Options >Command prompt
5-Type these commands and press Enter after each one:
C:
cd C:\DLL
copy * C:\Windows\System32\ /Y
6-When finished close the command prompt then click to return to the first screen
7-Click to continue to normal boot
If you receive any error message, please take a screenshot and attach it here to help identify what is causing the problem.