There's no "break" in Outsystems. We can workaround this by using some tricks, but there's no way to break a foreach cycle in design.
So, why not make the max records property of the Foreach works dynamically? (at least it would be useful...) I mean if I could set this property in the cycle, I would be able to end it. Actually you can do this, but Outsystems ignores this change and the inicial value remains.