Great advice from gutenberg. Take the detailed feedback to your supervisors. Get them to explain anything you don't understand. Then work through the feedback with them one point at a time, coming up with an action point to address it. Your research may not look anything like it did when you started, but it should be better if your viva panel and supervisors are doing a proper job and if you're flexible enough to work on the points they raise.
If it helps, I also had this experience in my first review. Everything was wrong - pretty much literally. The title, the research question, the aims, objectives, methods, structure... Even the lit review had holes of which both I and (more worryingly) my supervisors, were completely unaware. One of my viva panel took such grave exception to something I'd written in the Acknowledgements, that another panel member had to lean over and tell him not to take it so personally. To find something positive to say, the review panel were reduced to complimenting me on the accuracy of my referencing format! I did get through it in the end, but it took another eight months in total (although five of those were waiting for the resubmission to be marked).
It can be a nerve-wracking process and it can really shake your confidence - both in yourself and your supervisors. But it is survivable.