i had the same problem, i've been using it for years without problems booting into UEFI, but then when i was charging the battery there was a voltage problem at my home, it’s suddenly turned off, and when i turned it on, it became no bootable, i tried all solutions to get it back to boot UEFI, but i can only boot into legacy, there i realized something is wrong with my battery, i tried to replace the battery with a new one and now it can boot through UEFI normally