At a moment of anger, I swore to not do a ‘certain action’ that is necessary for me to do. Can I break this oath?
The oath is not valid because you swore on leaving something that should be done. Therefore, you can break it without a problem.