A gap between your studies does not disqualify you from government job exams.
Eligibility depends on age, education and the other criteria in the notification — not on continuous study.
You do not need to explain or justify gap years anywhere in the application form.
Be ready to answer about your gap years only if an interview panel asks.