I have what seems like a memory issue in my Openspan automation. In this post it seems to imply that using listLoop for iterations can cause memory issues, although it does not state it clearly. We use listLoop to iterate through a WPFListView to get the items we need:
Any loop can potentially create memory issues based on how it is designed. I would recommend experimenting with making part of the loop asynch or completing the loop prematurely to release held resources.