Some help can work, by referring to the links listed below.
But most cases, just “erase and install” should be selected to save time!
Reference
https://help.ubuntu.com/community/UEFI
https://askubuntu.com/questions/828203/how-to-recover-efi-boot
https://itsfoss.com/solve-error-partition-grub-rescue-ubuntu-linux/