My anki comes up with an error message and it won't let me browse my decks! Please help

Whenever I try to close anki, it comes up with an error message and tells me to copy and paste this. It does not allow me to click on browse decks either. This happened after I downloaded a pre made deck, and I then deleted it. Please help!!!

Anki 2.1.40 (cf446733) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=1
Add-ons, last update check: 2021-02-18 15:37:02

Caught exception:
Traceback (most recent call last):
File “aqt\”, line 1007, in closeEvent
File “aqt\”, line 444, in unloadProfileAndExit
File “aqt\”, line 421, in unloadProfile
File “aqt\”, line 530, in unloadCollection
File “aqt\”, line 797, in closeAllWindows
File “”, line 132, in closeAll
File “aqt\”, line 730, in closeWithCallback
File “aqt\”, line 508, in saveNow
File “aqt\”, line 617, in saveTags
File “anki\”, line 68, in flush
File “anki\”, line 364, in update_note
File “anki\”, line 256, in _run_command

Please force Anki closed. If the problem comes back again, what steps are you taking that triggers it? When problems occur - Frequently Asked Questions