You can’t switch from Legacy Boot to UEFI after installing the operating system because the two methods create a totally different boot data layout on the disk. You have to choose UEFI before installing the OS. Meaning that you now have to reinstall from scratch. This will probably help: