We have this problem on Windows 10 systems only and not on Windows 11, but of course this might be some kind of coincidence. See my comment in the announcement of Swift Swift 5.9.1 for Linux and Windows.

Unfortunately we could not yet reduce our project to the point where this problem persists and we could share the code. But with your open source library, there is a change that other people can examine this.

Following the Windows 10 vs. 11 idea (which of course might be the wrong path, there were some scepticism in the other topic), which OS version are you using? I can test on both versions, which is the exact package (swift-png? which version or branch?) and the command (just compilation or testing) that fails?