This issue was fixed by upstream in June [1] and the fix is already in buster according to the version number. Is it possible to apply the upstream fix to the version in stretch? [1] https://dev.gnupg.org/T2990#98557