Just open enough issues on the parent libraries that they give up and conform to the hallucinations.
I’ve been doing this in my private codebase. When copilot hallucinates a function, I just go and write the thing. It’s usually a good idea, and it will re-hallucinate the same function independently in another file.