The viva is your final exam, but it’s not the only test.
Throughout your PhD there are plenty of tests, big and small, formal and informal.
You’ve passed them all to get to the viva.
You didn’t need to be perfect to pass them, you don’t need to be perfect to pass the viva.
Just keep going.