Yeah, you reset when you get hit, but Zelda getting hurt doesn't actually hurt you (though it is hard to tell in the heat of the moment). So, as long as you keep dodging, you can keep it up indefinitely. You don't need to worry about failing because you decided not to facetank a boulder.