I recommend using a List field for section 2. Then you can use this method to set the number of rows based on the choice from section 1.
Will that work for you?
If not, maybe something like this (where section 2 is your nested form over and over):
That is a paid solution but maybe that is an option for you.