There's no circumstance where a .DS_Store file, on macOS, should ever be in a git repository. Unfortunately, many don't put it in their .gitignore, with the result that it gets preserved. I recommend ...
What steps can reproduce the bug? Essentially, during patching of a library, macOS created a few .DS_Store files, as I was looking at the library folder in Finder. This didn't cause issues when ...