Check if this repair method works:
If it doesn’t work, back up your important data to an external drive, cloud storage, or a pen drive. Then perform a clean installation of Windows using a bootable USB drive.
If the system does not detect the USB drive when create from windows media creation tool, you should create the bootable USB using Rufus with the GPT partition scheme. Leave the other settings unchanged unless you specifically want to modify them.
Steps to create bootable USB using Rufus:
- Back up the USB drive because it will be erased. Use a 16 GB or larger drive.
- Download the Windows ISO from here and Rufus from here.
- Open Rufus, select the USB drive and Windows ISO.
- Choose GPT as the partition scheme and UEFI as the target system. Leave the other settings unchanged.
- Click START. If Rufus displays Windows customization options, select only the options you specifically need and confirm the warning.
- After Rufus finishes, boot the computer from the USB drive to install Windows.
Also, in another answer, EmilyS726 suggests using at least an 8 GB USB flash drive. However, that may no longer be sufficient because newer Windows 11 ISO files are larger than 8 GB. You should use a slightly larger pen drive, such as a 16 GB USB drive.