I could be wrong, but it looks to me like an issue with the cached value of the previous row. I’ve reported it to the developer.
In the mean time could you try adding this before getting each row
$post_id = $post->ID;
$field_name = 'content_sections'
acf_delete_cache("format_value/post_id={$post_id}/name={$field_name}");