The attachments, also my report has nothing below the top forEach loop so maybe some...
I made some changes in my local copy of your code that definitely helped, I did try...
New IF tag option to allow row to be reused by content below it.
ForEach slow performance when spanning multiple lines with large data sets
Is it possible to use nested objects in the foreach tags group by field. For example...