Hi,
The periods shown on a S041 certificate (which is a reply to a S040) relate to periods of Insurance (where NICs have been paid), or periods of residency in the UK, not the periods when someone has had a valid NHS number. However, without sight your personal certificate, we are unable to answer specifics on this forum.
Please contact the National Insurance team and we can check your records, and answer any further queries you may have.
National Insurance: general enquiries
Thank you.