GitHub pulling issue

It seems like there are files in my GitHub that are not in my computer. I tried to pull the files, but I am getting this error:
fatal: bad object refs/heads/main
error: GitHub - hjjyhj/LeetCode: My LeetCode practice did not send all necessary objects
I have tried mv .git/refs/remotes/origin/HEAD /tmp, but getting No such file or directory error. git gc gives me error: bad ref for .git/logs/refs/heads/main
error: bad ref for .git/logs/refs/remotes/origin/main
fatal: bad object refs/heads/main
fatal: failed to run repack
git remote set-head origin --auto is pointing to the correct repository.
Does anyone know how to solve this?