It looks like there is no way to use Telegram sendMediaGroup node to send a bunch of pictures as an album. It works only if node gets static number of pictures.
There was a thread before but no viable solution was ever presented.
If looks like we only support sending a known amount of items at the moment. I have changed this to a feature request so we can think about adding this in the future.