I think that works, there is more to it than just time off. I knew someone where the wife took off more than ten years to home school their kids, the kids grew up, she went into a new line of work and was only on the job for about 6 months. They had good fundamentals (In fact they were kinda loaded because she doubled their income and the purchase wasn’t a stretch above what their rent was without her income) but they needed to calculate about 25% of her income to qualify and the first lender said no. They had to shop around but they found a lender and at market rates. The reasons they were given was that it was a combination of things. Her lack of work history, the new line of work she was now in and her probationary status at work. It wasn’t a single thing in a vaccum, but a combination of things.
In your case, it’s not a huge threat to your ability to repay the loan, so I think you should find at least one lender out there, especially since it is the same line of work.