Paying off debt while investing

Hi everyone!

I am currently have a debt of at least 50万 from unpaid health insurance premium. Due to the fact I have not cancelled the National Insurance even thought I already have Company Insurance.

Now my question is should I pay it off early or pay it off gradually? As I am planning to invest on NISA.
In terms of my Emergency Fund, I planning on saving bonus for a year as the EF.

Interest rate, I believe is about 8.7% per year. I am planning on paying 5万 per month to finish it off within 10months.

My question and my finances are all over the place, sorry!

Thank you!

by AdHopeful438