How do I know that the IDs or EPCs for every vial are really unique?

The chip manufacturers are responsible for the uniqueness of the resulting bit sequence. An agreement among RFID chip manufacturers prevents any overlap of the number space, so even chips produced by different companies can never have the same EPCs.