The Anglo-Dutch wars were far less damaging for the Dutch Republic than people seem to think (especialy ifwe ignore the 4th one, which was unrelated to the first 3 and happened a century later). The Fanco-Dutch war that happened simultaniously with the 3rd Anglo-Dutch war was far more damaging, since half the country was occupied by the French. The thing about the 2nd and 3rd Anglo-Dutch war is that the Dutch won. The English were beaten by the Dutch. You can even see it in the peace treaty of the 2nd Anglo-Dutch war. The Dutch traded New Amsterdam for the far more valuable Surinam. It is unimaginable these days that Surinam is more important than New York, but Surinam had sugar, while New Amsterdam only had people, which were surrounded by hostile Indians and English. Surinam was so much more valuable than New Amsterdam that the English actualy offered to return New Amsterdam to the Dutch if the Dutch returned Surinam. The Dutch refused the offer. Also The VOC still rules supreme in East Asia. And in the 3rd Anglo-Dutch war? The Dutch recaptured New York, beat the English, who couldn't wait to make peace with the Dutch. And the Dutch couldm't wait to make peace with the Engish, since they hadbigger problems than the English: the French, who, as mentioned, occupied half the country.
I would say that the decline of the VOC and the Dutch republic were not caused by the Anglo-Dutch wars, or even the war(s) with France. I would say that it was caused by the Glorious Revolution, the complacency of the VOC/the Netherlands and corruption. The Glorious Revolution, because the Dutch introduced several Dutch financial and economic innovations to England/Britain, so it lost the edge it had over England. With complacency I mean that the VOC was so succesful in the 17th century that it thought it didn't need to innovate anymore,even though the other countries (especialy England) were cathing up, so the VOC lost ithe advantage it had over the English (and over the local Asians, especialy in India). With corruption I mean is that the Dutch republic became incredibly corrupt, which was a major part of its downfall.