Error: Create instance: Insert volume snapshot: UNIQUE constraint failed

UNIQUE constraint failed

# command
lxd sql global "SELECT MAX(id) FROM storage_volumes_all LIMIT 1;"

# output
+---------+
| MAX(id) |
+---------+
| 3502    |
+---------+

# command 
# set seq as MAX(id) value
lxd sql global "UPDATE sqlite_sequence SET seq = 3502 WHERE name = 'storage_volumes'"