Unfortunately, without looking at your personal National Insurance records I am unable to confirm if you would be eligible to pay voluntary National Insurance contributions whilst abroad.
The information in the NI38 - Social Security abroad: NI38
confirms that you need to have lived in the UK for a continuous 3-year period at any time before the period for which National Insurance contributions are to be paid, or before going abroad, you paid National Insurance:
(i) from April 1975 to give 3 qualifying years, or
(ii) from April 1975 to give 2 qualifying years and paid 52 National Insurance contributions (of any Class) before 6 April 1975, or
(iii) from April 1975 to give 1 qualifying year and paid 104 National Insurance contributions (of any Class) before 6 April 1975, or
(iv) 156 National Insurance contributions (of any Class) before 6 April 1975, this will be checked when you ask to pay Class 3 National Insurance contributions, and if you’ve lived or worked in an EU country, or in Iceland, Liechtenstein, Norway, Switzerland or Turkey, your time spent there may help you to meet condition 2(a) or 2(b).
A qualifying year means, a full tax year that you have paid sufficient National Insurance contributions i.e equivalent to 52 weeks.
If you would like HMRC to check if you are eligible to pay voluntary National Insurance contributions, please complete the CF83 application form which can be found on the GOV.UK website, see link above.
Please note, the deadline for paying for tax years from 2006-2007 to 2016-2017 has been extended to 31/07/2023.
Your CF83 will need to be received by HMRC before that date for those years to be considered, if you are eligible.