Try cloning the remote repository into a new folder.
Does it also have these errors? If not, simply use this clone and delete the corrupted one.
Any modified files that have not yet been committed can simple be copied to the new folder. Important: Don't copy the .git
folder.