Ingrid, did you ever solve this issue?
I am having this same issue. I create a new survey in Survey123 Connect, publish the survey, fill out a survey and try to upload my template but receive this error "Error: Cannot read property 'layerName' of undefined"
I receive the same error on a "Download sample template:" form.