The Holy Spirit who makes sure that only those books that have no errors or contradictions are held as truth by those He indwells.
How do you know objectively and extrinsically say that Homer wasn’t divinely inspired by the Holy Spirit when he wrote the Odyssey and the Iliad?
Or the Gospel of Thomas, for example?
What is the extrinsic criterion for determining a text was inspired by the Holy Spirit?