'Group' is a collective noun which means a number of people.
'Herd' is a collective noun which is used with (a group of) animals.
'Stack' means a pile of objects.
'Galaxy' is a collective noun which means a system of millions or billions of stars.
Here, 'stars' is mentioned. Therefore, the correct option is 'galaxy'.