From your OP, I can only assume that you were trying to reinstall/repair over an existing OS. Now, your only hope is either to reinitialize the reinstall from the OS disk or repair menu, and write ...
Use the following solutions to fix the error message Windows cannot install required files during Windows installation, with error codes 0x800701B1, 0x8007025D ...
1/11/24 update added below. Windows 10 users worldwide report problems installing Microsoft's January Patch Tuesday updates, getting 0x80070643 errors when attempting to install the KB5034441 security ...
I'm betting you could do a fresh install from the latest media creation tool and it will take care of it. I would hope so anyway. I think that is what I would do in your situation, backup everything, ...