Found a post of someone that was having the same problem but with Hyper-v. They downgraded the Kernel to 6.1.89 to make it work. https://forums.fogproject.org/topic/17663/capture-uefi-image-on-hyper-v-vm/2
Downgrading the Kernel to 6.1.89 also worked for me. None of the newer Kernels (6.6.xx) worked. Will there be a true fix? Downgrading doesn’t seem like a fix to me.
We run Proxmox 8.3.2 if that helps.