I've added an example for this:
https://winscp.net/eng/docs/script_retry
https://winscp.net/eng/docs/script_retry
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.