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

You can just take the failed section, but you'll still pay the full $95 examination fee. You have to pass your retake within 90 days of your first test.