Why is my ACF code only displaying the first 4 repeatable fields?

Hi,

I’m trying to get some acf code to work on a page and loop through some repeatable fields but I only am getting the first 4 and any more than that do not display rendered on the page. The code is below. Any help would be appreciated. Thanks.

{% if page.metafields.YB-Event != blank %}

{% assign myVars = page.metafields.YB-Event %}

{% for value in myVars %}

{% assign i = forloop.index0 %}
{% if page.metafields.YB-Event.YB-Event-Title[i] != blank %}

{{ page.metafields.YB-Event.YB-Event-Title[i] }}

{{ page.metafields.YB-Event.YB-Event-Time[i] }} | {{ page.metafields.YB-Event.YB-Event-Date-2[i] }}
{% endif %}

{% endfor %}

{% endif %}

{% assign loop_count = product.metafields.Icon_image.img_icon.size | minus:1 %}
{%for i in (0..loop_count) %}
{% if product.metafields.products.acc_heading[i] != blank %}

icon image{{forloop.index0}}

{{product.metafields.Icon_text.text_icon[i]}}

{% endif %} {% endfor %}