Conditional closed tag is missing at the end of the collapse twig component.
Change the last div with:
{% if collapse_type == 'details' %} </div> {% else %} </details> {% endif %}
Active
5.0
Code