Application works on Windows and WSL2 but fails in docker (Linux). Broken pipe - C#