LXD 5.0.3 on Ubuntu 22.04 stopped working, with lxc ls returning: Error: Get "http://unix.socket/1.0": EOF

This thread is regarding LXD 5.0.3, have you looked at the LXD 5.21.1 release notes page?