Problem with links to local docs in calc

I have a LO calc sheet which seems to have become corrupted. Somehow, the links I inserted to local documents, while still showing the same text, are pointing somewhere else. Ctrl-clicking results in file not found. The documents are still there. There are several hundred entries which are affected.

How can I address this?