Git-LFS fails to build with Go 1.24<
Patch is based on https://github.com/git-lfs/git-lfs/pull/5998 but
rewritten so we don't implement the new error handling system introduced
in 3.7.0. Only new thing is logic that preserves original behavior of
error messages and at the same time avoids the format string test
failures
Resolves: RHEL-106475