What do you do when you’re afraid of failing?

I've been working on a protect for more than 2 years now, I am about to finish it and I'm starting to fear. What if all I've been doing, all I've sacrificed was for nothing? What if my project never reaches my expected results? What if it's a complete failure? How do you deal with such feelings?