Oops, I would start over by resetting to factory, see What to do before you sell, give away, trade in, or recycle your Mac - Apple Support.
For the reset procedure, avoid Time Machine entirely i.e. physically disconnect the TM disk. And of course, don’t even think of Migration Assistant. Both apps are dumb old Apple bots that dole out as much pain as they ease, avoid whenever possible.
Once the Mac is setup afresh, install Apps manually and likewise with user data files (assuming you’re not iCloud savvy). Files like pdf, docx, jpegs, xlsx etc. - those files should be manually copied to external disk prior to reset.)
Then setup your mail accounts afresh and let them sync up with their servers and update. Can take a few hours but without alarming notifications etc. - just let it do what it needs to do.
The other option is to wait it out for MA finish. Use Webmail until.
Good luck!