In a previous version of the add-on we’ve had the add-on change permission of files in an attempt to fix permission errors occurring during add-on updates on Windows. The permission errors were caused by Anki not being able to move files which were opened for writing (log files). The code for changing permissions had a bug… and it caused permission errors like the one above. This was some time ago, but some users still have the old add-on version.
We have a bunch of these reports on the AnkiHub forum too: AnkiHub Add On Not Working - Support - AnkiHub Community
The recommended solution is to start Anki in safe mode, delete the add-on and re-install it.