There is a lot to think about here, but the transition to fossil fuels (first coal. then oil and more recently gas) happened by necessity, with the aid of the energy source used before (thus muscle was used to mine and use coal, which powered railroads and steamboats, which in turn facilitated into building the infrastructure needed for the mass adoption of the internal combustion engine. The same has to happen now. There is no way to magically transition into renewables and other sources without constructing the components needed using fossil fuels. The more renewables are produced, the larger the amount of energy produced by them will be and thus less energy will be needed from fossil fuels, until hopefully one day they are phased out entirely. The question is, of course, whether we manage to complete (most of) this process before fossil fuels become too costly to be efficient and, even more importantly, before we destabilize our climate so much that the damage caused will be irreversible (and cause a cascade effect which will end our civilization).
As I understand, many if not most collapses of past civilizations came as a result of ecological collapse/changing climate conditions. These factors impacted food production, which in turn led to unrest and destructive fragmentation. The same thing could very well happen now. Whether there is a surplus of oil or not, if arable land suddenly starts becoming scarce due to extreme weather conditions fully fueled tractors and trucks will not help us avoid starvation.