Have a look at the following links.
web api testing - Postman - how to loop request until I get a specific response? - Stack Overflow
Retry a failing request - Help - Postman Community
Both are similar in that they use a proper request in the GUI with setNextRequest instead of sendRequest.
They also recommend a max number of retries to ensure you canβt get an infinite loop.
Something you might want to consider.