@Jordib
I undertsand that the Flow is functioning correctly. However, it is difficult to tell you how to configure it for your requiremenst without seeing it.
One technique would be to use a variable - make it a boolean and initialize it to false. Place the action that that is going to error our inside of a do until loop. Immediately after the action that may error, include a delay action. Configure the run after settings on thedelay to run only if the action before it has failed. Next, configure a set variable action to run only if the action before it (the delay action) is skipped. In this action, set the variable to true.
The Do until loop will time out in one hour by default. Make sure that you change the timeout by click on change limits in the action.
The loop should run until the variable equals true.