B"H
There's no indication in any Torah sources that I'm aware of that suggest that the Torah (books Moshe) was ever any number of books other than 5, and then divided up later
(There is an opinion that it's really 7, but that's different than saying it was divided up later, it's just another perspective, and many commentators say the 7 and 5 division is just different levels of the Torah)
Each book of the Torah has to be separated by 4 blank lines, and every Torah that's written has to be written based off of another Torah, all the way back to Moshe, so it doesn't seem possible that there was ever a time that they were one then divided up later
The Rebbe address the significance of the 5 books of the Torah in Sefer Hasichos 5751, section 10 (pages 10 and 11)
In short, the Torah can be divided either into 5 books, or 7.
If one counts the two verses vayehi binsoa haaron, "when the Ark would travel.. Etc.", as some do, then the book of Bamidbar is divided into 3 sections - Bamidbar, Vayehi Binsoa, and the passage after it, "the nation was complaining".
It explains that that last book (of the Bamidbar division) is specifically all about negative things (Jews complaining, spies, korach, bilaam, minyan women etc etc), in order to elevate even mundane matters and make them part of the Torah.
An example it gives of this is a lever to lift up a house; in order to properly lift it up, it has to be lifted from the bottom. So too in order for the Torah to properly elevate the world, it has to elevate the lowest elements.
This is the idea of 7 (books), corresponding to all of the seven sefiros, even those that give room for "the other side", in order to elevate even that.
In general there are 7 types of Jews total, corresponding to the 7 branches of the menorah. This Includes ALL types, even types of Jews that aren't necessarily "holy".
5, however, only corresponds to the sefiros of chesed through hod, the sefiros that don't give any room for evil or anything "outside" of holiness.
In terms of the Jews, it says in pirkei Avos chapter 2 that rabbi yochanan Ben Zakaria had 5 students.
But did he, who started yavneh and it's wise ones, and continued all of Torah learning in exile after the churban, only have 5 students?
The sicha says no, but that all of the students, learners of Torah, that he had are all divided into 5 general categories.
This is only referring to categories of torah learning, unlike the 7 general types which includes even types that aren't directly involved in holiness.
So the 7 books of the Torah division represents how the Torah elevates even the "lower" level of Jews, all 7 types, both holy and not, while the 5 books division of the Torah represents how the Torah exists just in a state of holiness -- corresponding to the first 5 sefiros only, and the 5 categories of students of Torah
(rabbi yochanan ben zakai is said to be eternal in this context the 5 categories of students etc)
It goes into a lot more detail about the significance of the divisions of 5 or 7 books corresponding to the avoda we do with ourselves, or with others, and lots of more details; see there.