Manual:$wgMaxNameChars

Details
Sets the maximum number of bytes in username.

User::isUsableName (and thus the "Create account" form) enforces a lower limit of 235 bytes, to avoid unreachable subpages such as User_talk:Username/monobook.css.