A Microsoft file hosting and synchronization service.
In this case, I'm afraid that both the OneDrive and In-place Upgrade issues are being caused by severe system corruption. Therefore, your only option is to back up your files and perform a clean installation of Windows 11.
To perform a clean install, you will need an installation media.
If you don't have an installation media, create one using the Media Creation Tool.
You can create the installation media on an empty USB flash drive with at least 8GB.
Below are instructions for creating installation media on a USB flash drive.
- Download the tool from the link below;
https://go.microsoft.com/fwlink/?linkid=2156295
(If the Media Creation Tool shows any errors, it's probably also due to corruption. In that case, your best option will be to create the installation media on another PC running Windows.)
- Double-click on the downloaded file to run the tool;
- If prompted by UAC (User Account Control), click on "Yes";
- Read the terms and click "Accept" if you agree;
- Leave the "Use the recommended options for this PC" box checked and click "Next."
- Select "USB flash drive" and click "Next".
- Connect the USB flash drive you want to use, click the "Refresh drive list" link, select the USB flash drive, and click "Next";
(Note that the files on the USB flash drive will be deleted. Make a backup of the files if necessary.)
- Wait for the procedure to finish and click "Finish" when the USB flash drive is ready.
If necessary, make a copy of your files to an external storage device or a cloud storage service. A clean install will remove all data stored on the system drive.
Then, access the article below, go to the end of the article, and expand "Clean install" under "Steps to reinstall Windows with media" to see the instructions.
In your case, start the computer using the installation media and proceed from step 2.
(You may need to change the BOOT property in the device's BIOS settings. If you don't know how to do this, please tell me the motherboard model.)
Feel free to ask back any questions.