Critically it’s not just a question of what percentage of a work is a copy of the original but what of the original work was copied. IE copying 3 lines in a book is a tiny fraction of the book but if you coped half the poem it’s well past the de minimis threshold.
Similarly only a small percentage of a giant library of MP3’s comes from any one work, but that’s not relevant.