The selected boot device failed
It is worth noting that the 2 points mentioned below need not necessarily be followed in the same sequence. You can create a bootable USB Drive before changing the BIOS settings too.
1. Disable Secure Boot in BIOS
First of all, I would recommend disabling Secure Boot in the BIOS settings. So, start by booting your computer into Windows 11/10 first. Then, Go to Settings > Windows Update, and check if you have anything to download, and install if you see any updates being offered. OEMs send and update the list of trusted hardware, drivers, and operating systems for your PC. Once done, you need to go to the BIOS of your PC. Go to Settings > Update & Security > Advanced Startup options. When you click on Restart Now, it will reboot your PC, and offer you all these advanced options. Select Troubleshoot > Advanced Options. This screen offers further options which include System restore, Startup repair, Go back to the previous version, Command Prompt, System Image Recovery, and UEFI Firmware Settings.
Select UEFI Firmware Settings, and it will take to the BIOS. Every OEM has their own way of implementing the options. Secure Boot is usually available under Security > Boot > Authentication Tab. Set it to Disabled.
Also, set Legacy Support to On or Enabled. Save changes and exit. The PC will now reboot. Now you are halfway done.
2. Making a proper bootable USB Stick
To do this, you should use the Media Creation Tool – but you can do it without using the Media Creation Tool as well. If you get an ISO without using the Media Creation Tool, make sure that the bootable USB stick has been created using a trustworthy tool. Once you are done with both of these things, you are good to go with the installation of the operating system on your computer. All the best!