For example, you can download Super Grub2 Disk to create a recovery USB flash drive:
Then write it using dd to a USB flash drive:
sudo dd if=super_grub2_disk_hybrid_2.04s1.iso of=/dev/sdc bs=4M; status=“progress”
Boot using the Super Grub2 USB flash drive you just made.
Select the appropriate EFI file to boot your distro from.
Log in like you normally would.
Open a terminal.
Reinstall grub-efi.
For example, on Debian (obviously for Arch use pacman instead of apt):
sudo apt-get install --reinstall grub-efi
sudo grub-install
sudo update-grub
Check the EFI boot options:
efibootmgr -v
If the first boot option listed is your distro on your internal drive then:
reboot
You should now have a fixed grub-efi that will boot your distro without need for the Super Grub2 disk, thereby fixing the borked grub-efi parameters mismatch.