Recently signed up for ankihub and now whenever I open anki shows the same message and requires full sync

Before the error happened, I was…
i was opening anki
then this Reddit - Dive into anything
pops up. I hit yes and then it tells me i need to upload or download to or from ankiweb. so i make my choice and then it tells me full sync is needed. a few times it actually made me full sync, but the last 2 times it popped up as an error.

Error message (don't change this)
Anki 2.1.63 (f356f177) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.4-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-07-05 21:10:30

Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "aqt.taskman", line 90, in wrapped_done

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/db_check/anki_db_check.py", line 58, in _on_done
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/db_check/anki_db_check.py", line 51, in <lambda>
    lambda: _reset_decks(ah_dids_with_missing_ah_nids),

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/db_check/anki_db_check.py", line 114, in _reset_decks
    reset_local_changes_to_notes(nids, ankihub_deck_uuid=ah_did)

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/reset_local_changes.py", line 40, in reset_local_changes_to_notes
    importer.import_ankihub_deck(

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/importing.py", line 101, in import_ankihub_deck
    return self._import_ankihub_deck_inner(

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/importing.py", line 144, in _import_ankihub_deck_inner
    dids = self._import_notes(

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/importing.py", line 186, in _import_notes
    _reset_note_types_of_notes_based_on_notes_data(upserted_notes)

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/importing.py", line 629, in _reset_note_types_of_notes_based_on_notes_data
    reset_note_types_of_notes(nid_mid_pairs)

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/utils.py", line 171, in reset_note_types_of_notes
    change_note_type_of_note(anki_nid, target_note_type_id)

  File "/Users/timothydo/Library/Application Support/Anki2/addons21/1322529746/utils.py", line 181, in change_note_type_of_note
    current_schema: int = aqt.mw.col.db.scalar("select scm from col")

AttributeError: 'NoneType' object has no attribute 'scalar'

Sentry link (for developers)