I took a vow that I would not masturbate for 2 months. Only 6 days into this, I cannot deal with this any longer.Please note that I have Obsessive compulsive disorder so it is possible that I took my vow because of that. I am not sure of it myself
Yes. Any vow or promise that affects you or someone else negatively, should be broken unless you want to prove to yourself that you have strength to keep it.
If you don't, even when you're suffering, sooner or later you'll realize you did a bad thing. It wasn't necessary. There's no rule that you must keep doing something if you've taken a vow. Rules should be for solving problems or for some benefits rather than creating problems. I don't see anything wrong in it.
After all, what's a vow? It's something you believe in and you feel you must not break the promise related to it. But no one knows if it was right thing or wrong. Only experience will tell you that. If you feel you've gained enough experience in 6 days, break the promise!