Migration error for site with no members

UNKNOWN_CODE_PLEASE_REPORT is usually caused by mixed collation across your database tables in MySQL. Did you upgrade MySQL or otherwise change collation?

This issue rears its head differently depending on what migration you run after changing collations, but there is a similar issue here:

and here

Both of which have suggestions for how to diagnose and resolve the issue.