Someone blogged that the following happens with gpg version 2.2.27-3ubuntu2.1:
$ gpgv </dev/null gpgv: can't allocate lock for '/home/XXX/.gnupg/trustedkeys.gpg' gpgv: verify signatures failed: Unknown system error
For details see https://www.osso.nl/blog/2023/gpgv-can-t-allocate-lock-for/
I haven't cited more text from the blog because it's copyrighted and not licensed under a permissive license.