Gap year

Most student visa applicants are either “students” or “unemployed” at the time of the visa application. It’s not a problem at all. If you had a job, you’d have to quit it to pursue your education in the US anyway.

One of the big hurdles of a US visa application is overcoming a presumption of immigration intent. Most people do that by presenting “binding ties” to their home country. If you were applying for a tourist visa, binding ties could include your job, your housing, etc. But those are no good for a long-term visa. For longer visas like student visas, family and cultural ties become more important. Also that your proposed academic plan in the US has a clear value to you in your home country. (E.g. Germans seem to run into problems when they apply for a visa to study at a community college. Associate degrees have no value on the German labor market and the consulate staff know that too.)