Custom User Registration script only allowing usernames with 16 characters

I’m noticing a weird issue on a custom User Registration page I’m
using in WordPress. It seems as if WordPress will only accept
usernames with 16 characters (NO MORE, NO LESS).

You can check the database description and you should see that the user_login column is varchar(60)… much, much greater than 16. I am not sure if there is a minimum length but login names much shorter than 16 are allowed.

Whatever is causing this problem isn’t WordPress Core.