MFA import error: String does not match pattern ^[A-Z2-7]+$

We never encountered this during our testing, but now seeing this with our custom database connection. We’re using automatic migration and this error is blocking users trying to log in and/or change password. How are we supposed to handle this?