msg="Failed to open file" driver=fanotify err="invalid argument"

I’m encountering with this error when lxd api hangs and I want to restore it by running the systemctl reload snap.lxd.daemon:
snap logs lxd
2022-10-16T04:04:54Z lxd.daemon[2770063]: time=“2022-10-16T04:04:54Z” level=error msg=“Failed to open file” driver=fanotify err=“invalid argument”

lxc --version: 5.5
lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

I’m running about 100 virtual machines in this host.
All lxd production server configs are applied (Server settings for a LXD production setup)

The command snap refresh lxd --channel=5.6 solved my problem.