The character limit for a domain name seems to be 255 characters, based on testing. In a file geodatabase, when the 256th character is entered, the software simply removes it and only uses the first 255 characters.
Rather than silently truncating, I’m wondering if Pro could tell us that the domain name is too long when entering it.
Character limit for domain names?
Esri Case #03829144 - Domain name length limits