The operation couldn't be completed. (SSServerError-Domain error -5000.)
The error message within the title of this post was shown to me multiple times during the restoration process of my iPhone 7. I forgot my passcode and attempted too many times and ya... Regardless, during the restoration process, I attempted to restore from iCloud backup. The step immediately after the Data Analytics question (the one where they ask you if you want to help out the developers), I believe it was the iTunes purchases recovery step, it asked again for my iCloud password. After putting in the password, I received the error. After Googling a bit, it seems a similar error was shown to another individual and the resolution was internet connectivity. In my case, it could have been the same. I was using Wi-Fi to attempt to restore from a iCloud backup and during the whole process I did have to reset my router due to internet connectivity. Thankfully I waited long enough and attempted to re-enter my iCloud password and keep trying until it finally just worked (probably the Wi-Fi actually established again).
I wanted to make this post for anyone else that had/are having the same issue. Help this post helps someone.
iPhone 7