I had a similar issue with firefox launched via firejail where I had to pass through the socket file it uses to communicate with.
If it helps anyone, this was my solution:
$ cat .config/firejail/firefox-common.local
include firefox-common-addons.profile
noblacklist ${RUNUSER}/app
mkdir ${RUNUSER}/app/org.keepassxc.KeePassXC
whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC