Can't rebuild due to theme errors

Thanks! But safe mode won’t help. I can’t log in to the site.

I need to restore this database to another server. I can’t rebuild that site because the theme is causing errors when it rebuilds.

I can’t log in to the broken server. I need to update the database on the broken server, back it up, restore to the new server, and then rebuild the container.