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.6.1
Error message:
Invalid access to memory.
Stack trace:
[01AE0E25]
[77E8B466] ntdll.dll
[77E4012E] ntdll.dll.KiUserExceptionDispatcher
[012C466F]
[012E7B2B]
[012E7AE8]
[015EB690]
[76DE62F7] USER32.dll
[76DE6D35] USER32.dll
[76DE77BF] USER32.dll
[76DE7885] USER32.dll.DispatchMessageW