Thanks for the explanation, Ryan! Wow, working on the weekend? Epic customer service
Eventually I got this to stop happening. I had 2 distinct foreach loops coming off of that array. I combined the instructions into a single foreach loop, and the error went away.