Netflix now has Arjun: The Warrior Prince on its stream. I watched most of it to get a feel for some of the details of the story. I know the general outline of the Mahabharata, but I know the Bible or the Iliad far better (in case you can’t be bothered to follow the link, it’s only a small part of Arjun’s early life).
Depending on the sources you trust, the events of the Mahabharata date to around ~1000 BC. They were probably refined at a later date, perhaps around 500 years later.
I watched a fair amount of Arjun: The Warrior Prince. In some ways, it reminded me a lot of the Iliad and the Odyssey. These two works are a melange of influences and time periods, synthesizing true recollections of the large polities with highly stratified social systems and literacy of the Bronze Age, with the simple chiefdoms of the Dark Age Greece. The issue is disentangling the different periods.
One assumes the same is true of the Mahabharata and Ramayana.
The “wild card” here is that the most recent work has now likely confirmed the arrival of agro-pastoralists from the steppe in the period between 1500 and 1000 BC. By the time the historical analogs of the Pandavas were settled in the Gangetic plain, they’d likely been there for many centuries.