Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
When deleting some thousands of locally stored files in WinSCP 5.15.3 on my I7 16GB RAM - Win7 64bit
after some hours of waiting I get:
Invalid access to memory.
I know how to reproduce the problem or the problem happens frequently enough. I wish to be contacted by the WinSCP team to help resolving the problem.