Submitted MR to salsa that should fix this. I can't reproduce the error any more after installing this fix on a server that had the issue before, though I cannot say with 100% certainty every possible way to trigger the bug are handled by these 2 backported commits.
https://salsa.debian.org/horde-team/php-horde-db/merge_requests/2
signature.asc
Description: This is a digitally signed message part.

