I am planning to join a Master's program abroad in the US this Fall (starting in August) and have received an admit for the same. I am currently employed and have told my employer about this. I wish to leave early so that I can spend time with my family and focus on my fitness. However, if I leave now (in March), that will leave me with a career gap of about 5 months from April to August. Will this be a problem when applying for internships and jobs during and after my Masters? I also want to mention that I will require an H1B visa if I want to work in the US. My current employer is quite flexible and has given me the freedom to choose my last working day (any date within the next 2 months).
EDIT: I am currently working in the tech industry (software engineering, machine learning, quantitative research, and the likes) and would be interested in pursuing a similar role after my Masters.