You should be able to run a command that cleans the git tree of the file in all commits. I’ve had to do it because of committed passwords in files.
https://stackoverflow.com/questions/35115585/remove-file-fro...
https://stackoverflow.com/questions/35115585/remove-file-fro...