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

No, you can just retake the failed portion of the licensing exam. However, the exam fee is still $61.