Interesting behavior - this should not be needed normally. Will take a look by the next occasion. Please let me know in case problem would occur again.
I highly recommend updating the GnuPG/Gpg4Win to the latest one (3.1.14 at the moment), as other issues could occur too. E.g.: Nitrokey Pro 2 : Can’t generate gpg keys (GPG 2.2.23).
I had your error today while working with it at some point, but fixed it with the update.
Setting this answer as the recommended action for this problem.