Ankihub won't work on my macbook app

Ankihub used to work but then it randomly stopped a few weeks ago. I am trying to add the addon back because it is gone, but this error code pops up. How can I fix this?

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.4-x86_64-i386-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-06-14 14:45:31
Add-ons possibly involved: ⁨1322529746⁩

Caught exception:
Traceback (most recent call last):
File “aqt.taskman”, line 122, in _on_closures_pending
File “aqt.taskman”, line 71, in
File “aqt.addons”, line 1186, in _download_done
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 “aqt.addons”, line 1163, in
File “aqt.addons”, line 1179, in _download_all
File “aqt.addons”, line 1124, in download_and_install_addon
File “aqt.addons”, line 430, in install
File “aqt.addons”, line 473, in _install
File “zipfile”, line 1625, in extract
File “zipfile”, line 1696, in _extract_member
PermissionError: [Errno 13] Permission denied: ‘/Users/name/Library/Application Support/Anki2/addons21/1322529746/user_files/’