Also i do not actually recommend that, instead in your CODE have guard clauses and statements that would automatically loop around the object instead of actually repeating what the previous node did.
@NISHANT_GARG set up an Error Workflow — it catches any failed execution and can re-trigger the main flow automatically, works across all nodes not just the Code node. go to your main workflow Settings and point “Error Workflow” to this one:
save this as a separate workflow, then in your main flow go to Settings > Error Workflow and select it — any node that fails will re-execute the whole flow without touching individual node retry settings.