I was trying to figure out how to profile this and I found this just now
It appears from this older thread that if the stack and the heap borders get too close together you get the SOS you are talking about. However, I wonder if the stack gets too large if this would still in some way impact the Wifi's ability to connect thereby influencing the heap? The only place we are specially using the heap is unrelated to this code and we haven't had an issues there. This seems directly related to the depth of the number of wrapped lambda's I create.