Thanks for your report.
I have sent you an email with a debug version of WinSCP to address you have used to register on this forum.
<Try to describe precise steps that lead to the problem (where do you click, what keys do you press, what do you see, etc.)>
<If relevant, consider attaching a session log file or a screenshot)>
WinSCP 5.7
Error message:
Invalid access to memory.
Stack trace:
[01892B22] _ssh_send_port_open
[01A805DE] C4725_0
[01A82646] ____ExceptionHandler
[01A7F5C0] __ExceptionHandler
[773EB466] ntdll.dll
[773A012E] ntdll.dll.KiUserExceptionDispatcher
[01892C73] _get_ssh_exitcode
[0194703F] TSecureShell::EventSelectLoop
[019464DB] TSecureShell::WaitForData
[01943BAA] TSecureShell::Receive
[01943E28] TSecureShell::ReceiveLine
[01924F0D] TSCPFileSystem::ReadCommandOutput
[01925444] TSCPFileSystem::ExecCommand
[019254F3] TSCPFileSystem::ExecCommand
[01928C40] TSCPFileSystem::AnyCommand
[019B85F0] TTerminal::DoAnyCommand
[019B8337] TTerminal::AnyCommand
[019D972B] TConsoleDialog::DoExecuteCommand
[019D9837] TConsoleDialog::ExecuteCommand
[019D9543] TConsoleDialog::ExecuteButtonClick
[014BC755] Vcl::Controls::TWinControl::WndProc
[01A80C49] C4725_0
[01A82223] _ReThrowException
[019B86A9] TTerminal::DoAnyCommand
[019B8337] TTerminal::AnyCommand
[019D972B] TConsoleDialog::DoExecuteCommand
[019D9837] TConsoleDialog::ExecuteCommand
[019D9543] TConsoleDialog::ExecuteButtonClick
[014BC755] Vcl::Controls::TWinControl::WndProc