Advanced MPV player malfunction

The advanced MPV player add-on (924111087) always malfunctions once I close Anki. I get the following error message:

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.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 11.7.3
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2023-02-12 13:01:18
Add-ons possibly involved: ⁨Advanced MPV Player⁩

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 596, in after_sync
File “aqt.mediasync”, line 125, in show_diag_until_finished
File “aqt.main”, line 593, in after_media_sync
File “aqt.main”, line 481, in callback
File “aqt.main”, line 488, in _unloadProfile
File “aqt.main”, line 528, in cleanup_sound
File “aqt.sound”, line 880, in cleanup_audio
File “aqt.sound”, line 187, in shutdown
File “/Users/MyName/Library/Application Support/Anki2/addons21/924111087/”, line 231, in shutdown
File “/Users/MyName/Library/Application Support/Anki2/addons21/924111087/”, line 70, in saveGeometry
FindWindow = ctypes.windll.user32.FindWindowW
AttributeError: module ‘ctypes’ has no attribute ‘windll’