Changing from Legacy BIOS to UEFI (while it may function) isn't supported by VMware (according to a prior VMware support case).
So if you do change from Legacy BIOS to UEFI, then I would suggest reinstalling ESXi (make sure you have your keys/licenses saved first).