Hello Shreyas,
If you need to loop through more than 250 iterations you can make your workflow into a Recursive Workflow, see docs below: