you might try clearing the TFS cache:
https://learn.microsoft.com/en-us/archive/blogs/vsalm/how-to-clear-the-tfs-cache-on-client-machines
note: support of repos with large numbers of files was the main reason MS switched to git from TFS. You might want to do also.