It looks like this old issue which is supposed to be fixed a long time ago. I am using lxd v4.0.8
Can I safely run this database change?