I am currently researching the Protestant view of the biblical canon and have encountered a variety of perspectives on the infallibility of the canon. For instance, the renowned Reformed theologian R.C. Sproul argues that Scripture is a fallible collection of infallible books. This raises several questions: If the canon is not infallible, how can we be certain about the correct number of canonical books (e.g., 66, 73, or another number)? This ultimately leads to that canon is closed or not problem.

Others are those who argue that the canon is infallible, as it was determined by the guidance of the Holy Spirit through the church fathers and councils (It is seems like saying they were infallible indirectly)

My question is how these views be reconciled with sola scriptura in protestant context?

Related : Protestants on how the Biblical canon came?