The issue seems to be caused when updating the post with the sub-group collapsed. On load then it sets the sub-group as collapsed but still shows its subfields without taking into consideration the state of the sub-group
This is how it should be rendered when collapsed:
This is how it should be rendered when expanded: