If you are setting up Windows or using WindowsPE, you can choose UEFI or Legacy BIOS. If you do not boot into right mode, it will reboot the computer. Learn how to change BIOS mode from legacy to UEFI.