you could make "loops" run each iteration in a new lambda invocation.
We're actually working on rolling this functionality out in the next couple of weeks. If you're open to beta testing it, send me an email (dmitriy at retool) and I'll connect you with the engineer that's working on it!