Elliot – thank you, thank you, thank you! I was trying to use the Gallery plugin with the Repeater plugin and I was having the same problem. I couldn’t figure out why the original WP Gallery code example wouldn’t work with get_sub_field.
It took me quite a while to find this thread. As a suggestion, you might consider putting this code example in either the Gallery or Repeater documentation (or both).
Thanks!