Nesting "Repeat X times" won't work properly, since they actually only have a single variable for the number of times a loop has repeated. So unfortunately this cannot be done at present.
It will either need to be changed to allow multiple "X times" nesting, or changed to prevent you from nesting them in the first place.