When attempting to sign a commit, the following error occurs (keys held on a USB stick and changed with GNUPGHOME environment variable):
C:\Users\[username]\StorySite\app>gpg-agent gpg-agent[11216]: gpg-agent running and available C:\Users\[username]\StorySite\app>git commit -m "feat: Add partially complete author dashboard" gpg: invalid size of lockfile 'D:\gnupg/pubring.kbx.lock' gpg: cannot read lockfile gpg: can't lock 'D:\gnupg/pubring.kbx' gpg: invalid size of lockfile 'D:\gnupg/gnupg_spawn_agent_sentinel.lock' gpg: cannot read lockfile gpg: can't connect to the agent: Invalid argument gpg: keydb_search failed: No agent running gpg: skipped "[fingerprint]": No agent running gpg: signing failed: No agent running error: gpg failed to sign the data fatal: failed to write commit object