pkg sqlite problem?

From: void <void_at_f-m.fm>
Date: Mon, 12 Aug 2024 14:24:02 UTC
[49/121] Upgrading py311-urllib3 from 1.26.18_1,1 to 1.26.19,1...
pkg: sqlite error while executing INSERT OR ROLLBACK INTO pkg_annotation(package_id, tag_id, value_id) VALUES (2151, (SELECT annotation_id FROM annotation WHERE annotation = 'build_timestamp'), (SELECT annotation_id FROM annotation WHERE annotation = '2024-07-10T11:32:55+0000')) in file pkgdb.c:2055: UNIQUE constraint failed: pkg_annotation.package_id, pkg_annotation.tag_id
pkg: sqlite error while executing ROLLBACK TRANSACTION  in file pkgdb.c:1157: cannot rollback - no transaction is active

Looks like a problem with pkg itself? How to fix?

context
FreeBSD 14.1-RELEASE-p3 GENERIC amd64 1401000 1401000
# pkg -v
1.21.3
--