In practice, I doubt anyone uses shared secrets of more than 256 characters. However, a Google search provided some empirical information about maximal lengths for various implementations. The AWS Directory Service is documented to have an exceptional upper limit of 512.
From the AWS Directory Service Documentation:
Length Constraints: Minimum length of 8. Maximum length of 512.