If there appears something in the Torah which contradicts reason .. then here one should seek for the solution in a figurative interpretation .. the narrative of the tree of knowledge of good and evil, for instance, can only be understood in a figurative sense.
In the 13th century, Rabbi Isaac ben Samuel of Acre made the insight that, since Sabbatical cycles existed before man was created, time before Adam and Eve must be measured in divine years, not human years.