Something Went Wrong (com.apple.family.error error-1005)
This error happened when a new family member tried to accept my Apple Music subscription via text.
It was prevented because he hadn't accepted the icloud terms and conditions on his phone when he set it up.
If you are attempting to locate icloud terms and conditions, go to Settings and click on your Apple account. There will be a red circle next to the icloud settings which indicates there is something that requires attention. Click on iCloud and agree to the terms and conditions. That will resolve the issue with error-1005. Hope this helps!
iPhone 14 Pro Max, iOS 17