Database Error while starting

Hi, I use Anki on my desktop as well as on my laptop and mobile. I sync the content to be up to date between the devices. But now I got the following error message when starting Anki:

Error
An error has occurred. Please use Tools > Check Database to possibly solve the problem.
If the problem persists, please contact the support website with your problem. In this case, please include the following information in the problem report.
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2023-01-09 23:32:29

Caught exception:
Traceback (most recent call last):
File “aqt.taskman”, line 122, in _on_closures_pending
File “aqt.taskman”, line 71, in
File “aqt.taskman”, line 90, in wrapped_done
File “aqt.sync”, line 117, in on_future_done
File “aqt.main”, line 970, in on_collection_sync_finished
File “aqt.main”, line 956, in _refresh_after_sync
AttributeError: ‘AnkiQt’ object has no attribute 'flags

I don’t know what to do. I did the step Tools > Check Database, but the problem still exists.

Do you get any other errors popping up before that?