When nested repeats were removed, it published without an error. Repeats were nested 2-levels deep. Documentation says you can have any number of nested repeats. What gives? ~JP
Are you maybe still using a older Connect version?
This is an unusual error- based on the message and where it occurs in the publishing sequence it appears to be occurring during a set of operations that occur after the feature service is initially created (when the fields and related tables are added or when editor tracking is enabled). Can you share the XLSForm (if not publicly, please e-mail jtedrick AT Esri.com) so that we could attempt to reproduce?
Retrieving data ...