boot a live cd (the installer environment in debug mode should work as well), then basically follow https://pve.proxmox.com/wiki/Recover_From_Grub_Failure#General_advice , but instead of the last few steps with proxmox-boot-tool, reinstall the kernel package after chrooting.