The main reason why you are not able to install Windows 11 or Windows 10 from a USB flash drive is that the USB device is offline. Even if it is online and working, you must check that you have created the correct bootable drive. On the other hand, not having the minimum disk space could be the reason as well.