I am not a Proxmox user but I experienced the same issue after upgrading from Debian 10 to 11 in a LXC container.
I have a simple solution to the issue which does not require enabling nesting or masking systemd-logind that I hope more people can try and verify.
Solution:
Comment out the...