she shall marry a man of whom it shall be first of all ascertained by information taken that he does not know what books of chivalry are;
Books of chivalry usually note the adventures of these knights and the morals and the values they uphold. Don Quixote who has regained coherence (as he lay dying) makes note to not have someone in his niece's life who is also plagued by these fantastical adventures. I found this paper, which was a lecture, about courtly love and how the values of chivalry influenced the knights (their love languages, their time away from wives etc) . I found it interesting as I'm sure that Don Quixote was thinking of the knights in his books and how they acted towards their lovers and how himself acted as the books took ahold of him.
https://chaucer.fas.harvard.edu/pages/courtly-love-and-chivalry-later-middle-ages