I couldn't open anki - "resetting corrupt _global"

Please try renaming your prefs.db and prefs21.db files to something else. If that doesn’t help, please try renaming your entire Anki2 data folder.

https://docs.ankiweb.net/#/files?id=file-locations