"compiling media library" for two days

No, that shouldn’t be an issue.   I have 21,000 files or so on my Hub right now, and it takes less than 10 minutes.

It’s probably choking on a specific file.

You may need to erase all the files, then add them back in small batches, and see if the problem repeats.   If and when it does, you should keep track of which batch caused the issue, and then narrow down further until you find the file(s).

Your post is in the wrong forum, btw…