I am diving deeper into that, even though it's definitely out of scope of our support – mainly because I am very curious as to what is actually going on, and whether I can troubleshoot a weird issue without having hands on the site (if I didn't like a good puzzle I wouldn't be a software developer).
It looks like you are using Joomla 5.4 and the problem comes from Joomla's Multi-factor Authentication (MFA). The line number referenced in your message says that you were authenticated (username and password), then you are taken to the MFA, which rejected your request as it considered itself impossible to display.
My problem with what I am seeing in the stack trace and your description of what you did – especially the part about restoring a backup of a known-good site – is that they do not fit. The only reason the specific code line referenced in your stack trace would return the 403 is if you have disabled all multifactorauth plugins, or if your user is simultaneously in a forced MFA and a never MFA group. However, either of these issues would've made logging into the original site as that user impossible.
What I would do is restore the site, then use phpMyAdmin to remove all entries from the #__user_mfa table, thus disabling MFA for all users everywhere. If this doesn't help, also find all #__extension table entries where folder = 'multifactorauth' and enable them.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!