After making that change and restarting your PC, run Disk Cleanup twice as explained below to remove the temporary files from the previous installation attempts, then the upgrade should succeed.
Open File Explorer
Click on your hard drive
Click the 3 dots at the top of File Explorer and select Cleanup
Let Disk Cleanup do its initial scan
Select Everything in the list and choose Delete
Start Disk Cleanup again
Let Disk Cleanup do its initial scan
Very Important - this time in the resulting dialog, click 'Cleanup System Files'
Let Disk Cleanup run another scan
Select Everything in the list and choose Delete