Do you get the error when you run it interactively?
From my experience, I don't see how or why a COM application is involved here. OpenSSH is port from Unix based systems and I don't think that COM exists on that platform.
Please verify that you are running sftp.exe from the OpenSSH feature of Windows.
C:\>where sftp.exe
C:\Windows\System32\OpenSSH\sftp.exe
The error appears when we run the sftp command /job in debug mode..
By "debug mode", do you mean the -v command line switch?
C:\>sftp.exe -v admin@test10b
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Connecting to test10b [192.168.1.5] port 22.
debug1: connect to address 192.168.1.5 port 22: Connection timed out
ssh: connect to host test10b port 22: Connection timed out
Connection closed
What switch did you use to get it to display debug level 3? I do not see that in the man pages or in the help output.
ttps://www.openssh.com/manual.html
https://man.openbsd.org/sftp
C:\>sftp.exe -help
usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
[-o ssh_option] [-P port] [-R num_requests] [-S program]
[-s subsystem | sftp_server] destination