I had this issue as well and my maps and feature services are on AGOL. A good way to tell which layer is causing issues is in the error code. In the case above, layer 0 points to the first layer on the map. In my case, it wasn't a geometry issue but a field name in a hosted feature service that was converted from an Excel spreadsheet that caused it to fail when creating a replica.
... View more