I failed one portion of the NV exam. Do I have to retake both sections

No, you can take just the section that you failed as long as you do so within 12 months of passing the other section. You must pass both sections within 12 months of your initial test. You still need to pay the full exam fee for your retake.