Quitting because of piracy? So, the bad guys have won? You've given up your dream, but in this case, was it really your dream? Was it worth giving up to something that can be overcome?
[Decided to restore this bit, because it's a viewpoint and it's a different take; if you don't like it, don't jump down my throat about it -- I can entertain this viewpoint without saying it's one I accept or don't accept. It's a viewpoint.]
Instead of legislating to death against piracy and further reducing access to items for legitimate customers, why not find a way to integrate piracy somehow? If you think about it, piracy is a form of distribution, a promotional channel. What if you exploited it as part of the promotion campaign? The network is already set up, the people are already there.
And, for those that only turned to it because they have no other choice, and would have bought a legitimate copy if they could have, offering an incentive (e.g., a second free book, or, no prosecution) might help them to help you promote your work. (Btw, these are the people you want on your side. Not the actual pirates themselves, 'cos they do it because they can.)
The problem with piracy is the lack of access to the book, regardless of when it's released. Those not in the right country or region can't access it. And even after waiting a reasonable amount of time (about 2 years or more in some cases), and still being unable to purchase the book, they have one of two choices: forget the book, or go for a pirated one.
If the former can be chosen, most will. On the other hand, if you've waited for 2 years, and the publisher still hasn't released it, and you still can't purchase it legitimately, of course you're going to hit a pirated copy.
Understand that piracy is a solution to otherwise-unobtainable goods, or withheld goods because the publisher or whatever company, is trying to milk the customer for all they have. Or, the producing company is so terrified of pirates, they've cut out everyone (including that huge base of legitimate customers that would help them recuperate their costs) in certain regions.
So, a solution to piracy? Include otherwise honest people in your promotion campaign. How? That's up to you.