Is there a maximum number of segment infos whose summary (name and document count) is stored in the segments file?

Otis Gospodnetic

All segments in the index are listed in the segments file. There is no hard limit.

For an un-optimized index it is proportional to the log of the number of documents in the index.
An optimized index contains a single segment.