So as long as your gap period is caused by objective reasons, such as the elderly at home getting sick and preparing to study abroad (planned abortion). You can explain clearly on your resume, which can focus on your ability to fulfill the contract and reasonable expectations. If there are personal subjective reasons, for example, many young people quit their jobs just to rest for half a year, it depends on whether the other HR cares and agrees.
Finally, the gap period is by no means a worrying problem for anyone with strength. Personal ability is the most critical, so it is very important to cultivate internal strength.