There is a way to get into the metabase .db file and change certain parameters to allow admin login if locked out.
I haven’t done it myself but here is the post on it: How do you reset a user’s password without an email service configured or admin access?