Vasectomy Recanalization

Had my vasectomy in December after 6 tests my doctor told me that I have to do the whole procedure again since my first vasectomy failed.

Have anyone had the same problem? And how can I avoid the same thing happening on my second vasectomy.

Also I feel like I haven’t fully recovered from the first one since I still get testicle pain sometimes