Steve Ray has a list of 35 loaded Questions for "Bible Christians" (quotation marks his)(link to the whole list). This is number 10/35. I'm trying to provide the answers in a common format, for easy reference.
10) Where in the Bible do we find an inspired and infallible list of books that should belong in the Bible? (e.g., Is the Bible’s Table of Contents inspired?)
We don't find such a list, and the Table of Contents of our Bibles, while derived from the titles of the books of the Bible, is not itself a separately inspired document.
1) It is baffling why anyone thinks that it would be necessary for Christians to have an infallible list. Until the 16th century, no one claimed to have an inspired and infallible list, and the only people who claimed it then were Roman Catholics.
2) But if such a list is necessary for the Scripture, why isn't it also necessary for the rest of tradition? Why is Scripture singled out for this criticism by Roman Catholics? If the canon of Scripture is problem for "Bible Christians" the canon of Tradition is a much bigger problem for Roman Catholics.