Torah Temimah cites Nedarim 8a.
One might think that if he swore to fulfill a mitzvah and did not, he would be liable — Scripture says “to harm or to benefit”: just as harm is optional, so benefit is optional.
Oaths to fulfill an already-binding mitzvah are excluded from the oleh ve-yored of shevu’as bitui by the parallel of optional harm/benefit.