warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklistsHowever, blocklists are UNRELIABLE and their use is discouraged...
grub-install: error: will not proceed with blocklists.
Why Blocklists are unreliable. and how to use these blocklists.
I was doing my grub recovery in legacy mode when I changed mode to UEFI mode. I made a bootable device in the MBR Partition scheme and FAT(32) file system mode by using Rufus and I recovered normally by using live Ubuntu boot manager . After recovery, I again switch UEFI mode to legacy mode and everything worked fine.