Here are other troubleshooting that you can try and should fix this problem.
Solution 1: Check if doesn't have any corrupt files on Windows.
1-Right-Click on Start then click on Windows Powershell (admin)
2- Type these commands.
sfc /scannow (and press Enter)
Dism /Online /Cleanup-Image /ScanHealth (and press Enter)
Dism /Online /Cleanup-Image /CheckHealth (and press Enter)
3- The DISM tool will report whether the image is healthy, repairable, or non-repairable. If the image is repairable, you can use the /RestoreHealth argument to repair the image.
4-Type this command and press Enter:
Dism /Online /Cleanup-Image /RestoreHealth
Solution 2: If you have any third-party antivirus, disable it temporarily and try to install the software again.
Solution 3: Clear the "TEMP" folder
1-Right-click on Start then click on Run
2-Type: %Temp% and click on OK
3-Press Ctrl+A to select all files, and then delete them. You might receive an error message that some files cannot be deleted, you can ignore it by clicking on the "Skip" button
Solution 4: Check if you have enough free space on your hard drive
Solution 5: Reinstall the Microsoft Visual C++ Redistributables
Step 1: Uninstall the old versions
1-Right-click on Start then click on Run
2-Type: Control Panel and click on OK
3-Click on "Uninstall a program"
4-Search for "Microsoft Visual C++ Redistributables", right-click on that and click on uninstall
5-Repeat this procedure for all versions installed
6-When finished, reboot your PC
Step 2: Install the latest version. You can download the latest version at these links.
-Version 32 Bits
https://aka.ms/vs/17/release/vc_redist.x86.exe
-Version 64 Bits
https://aka.ms/vs/17/release/vc_redist.x64.exe
Solution 6: Perform the repair upgrade using the Windows ISO, this procedure will repair all Windows files, apps, services, and registry keys.
1-Download the Windows 11 ISO at this link.
https://www.microsoft.com/en-gb/software-downlo...
2-Double-click your ISO file, and click on the setup.exe file.
3-You may be prompted by User Account Control. Click on Yes if so.
4-In the Install Windows 11 dialog, click on Change how Setup downloads updates.
5-Select "Not right now". This will save you from downloading a new build (if available). Click Next.
6-Setup will check your PC and show a license agreement. Click on Accept in the license terms dialog.
7-Wait for the setup program to check for the available free space.
8-On the Ready to install page, click the Change what to keep.
9-Now, you can select Keep personal files and apps, Keep personal files only, and Nothing. Also, Nothing is the only option that will be available if your installation media doesn't match the installed Windows 11 version or language.
Note: It is safe to close the setup wizard at this step and cancel the repair install process. Otherwise, you won't be able to cancel it later. Finally, click Next.
10-Click on Install to start the repair install of Windows 11.