Anki Database Disk Image Is Malformed

I am receiving the following error:

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.42 (8eebfe18) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2021-03-16 18:33:24

Traceback (most recent call last):
File “aqt/main.py”, line 510, in loadCollection
File “aqt/main.py”, line 653, in moveToState
File “aqt/main.py”, line 660, in _deckBrowserState
File “aqt/deckbrowser.py”, line 67, in show
File “aqt/deckbrowser.py”, line 126, in _renderPage
File “anki/schedv2.py”, line 1166, in deck_due_tree
File “anki/_backend/generated.py”, line 307, in deck_tree
File “anki/_backend/init.py”, line 106, in _run_command
anki.errors.DBError: DBError { info: “SqliteFailure(Error { code: DatabaseCorrupt, extended_code: 11 }, Some(“database disk image is malformed”))”, kind: Other }

I have tried force closing Anki, and also have restarted my computer twice. I have also tried reopening Anki while holding “shift” and that is not working. I sync several times per day, but the most recent backup available is a week old, so I would rather not do that.

I also tried the following recommendation: “Rename or remove collection.media.db2 while taking care not to touch the collection.media folder. When you start Anki and sync, it will recreate the file.” This did not work for me either.

I have tried everything on “When Problems Occur”, so I have run out of things to try. Anki is working fine on my iPhone.

Your collection is corrupt, and will need to be restored from an automatic backup or sync:
https://docs.ankiweb.net/#/files?id=corrupt-collections