Can you add a version check? The old system of MySQL 5.7 continues to use a length of 16, and MySQL 8.0 uses a length of 32.
Or perform a check when adding a website with one click. If there are duplicate databases, the new website will automatically change the name of the new database instead of interrupting the addition.