“Permission denied” on Windows is often caused by a lock from a running process. It’s probable that there is a stalled Git EXT thread opened the pack file.
Try to do the git gc
in safe mode.
Another option is to clone the repository in a new place and delete the old one.