You can probably display the contents of your file in the outliner at the top. To the right of the search field. (see picture). Then you should have a term “Libraries” and your file/collection should be there. You can then right-click -> relocate.
I can’t test it now but this could help under certain circumstances
