I have tried all 6 steps in the "when problems occur", still this happens

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.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=1
Add-ons, last update check: 2020-11-01 07:38:20

Caught exception:
Traceback (most recent call last):
File “aqt\webview.py”, line 493, in handler
File “aqt\editor.py”, line 483, in
File “aqt\addcards.py”, line 191, in _addCards
File “aqt\addcards.py”, line 178, in addNote
File “anki\collection.py”, line 345, in add_note
File “anki\rsbackend_gen.py”, line 339, in add_note
File “anki\rsbackend.py”, line 267, in _run_command
anki.rsbackend.DBError: DBError { info: “SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some(“unable to open database file”))”, kind: Other }

What does Check Database report? Does this happen every time you add a card?

Yes, this happens when trying to add a card, say that a card was correct after viewing it, or trying to sync

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.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=1
Add-ons, last update check: 2020-11-01 07:38:20

Caught exception:
Traceback (most recent call last):
File “aqt\taskman.py”, line 87, in _on_closures_pending
File “aqt\taskman.py”, line 59, in
File “aqt\taskman.py”, line 76, in wrapped_done
File “aqt\dbcheck.py”, line 36, in on_future_done
File “concurrent\futures_base.py”, line 432, in result
File “concurrent\futures_base.py”, line 388, in __get_result
File “concurrent\futures\thread.py”, line 57, in run
File “anki\collection.py”, line 657, in fixIntegrity
File “anki\collection.py”, line 208, in save
File “anki\collection.py”, line 174, in _set_mod
File “anki\dbproxy.py”, line 61, in all
File “anki\dbproxy.py”, line 55, in _query
File “anki\rsbackend.py”, line 221, in db_query
File “anki\rsbackend.py”, line 244, in _db_command
anki.rsbackend.DBError: DBError { info: “SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some(“unable to open database file”))”, kind: Other }

This is what check database report says

And you did try restarting your computer? There seems to be something wrong with your collection files, so I am surprised you could even open your profile after restarting your machine.

Maybe the permissions are set incorrectly? https://faqs.ankiweb.net/windows-permission-problems.html

Are you able to open a backup in a new profile? https://faqs.ankiweb.net/restoring-an-automatic-backup-recovering-from-data-loss.html

I opened a backup and that worked. Thank you for your help.