The gap is never a problem as long as you have finished high school or secondary education.
To become a trained airline pilot at Epic Flight Academy in New Smyrna Beach, Florida, USA you must:
1) Be at least 17 years of age
2) Speak English proficiently
3) International students must have a valid passport (Passport information: https://epicflightacademy.com/passports/) or two other forms of identification if you are from the USA
4) Completed high school or secondary education (Grades don’t matter, only that you completed school.)
To see if you qualify for this program, kindly complete this form: https://epicflightacademy.com/prequalification-enrollment/