You have to be an LPR through marriage for 3 yrs to file and N400 under the the 3 yr rule. Also, 1filing the N400 under the 3yr rule opens up scrutiny into the marriage and the current family situation which could transition to the I751 since you would almost assuredly have a pending I751 if you file the N400 under the 3 yr rule. Can you leave the US for less than 6 months repeatedly and still maintain continuous residence, quite possibly, but as others have stated it may raise questions.
Good Luck!
Yes, staying outside the US for 2yrs will impact continuous residence, but what is the priority? If you are actually wanting to stay with your family and keep a good job outside the US, maybe a better path is to give up the green card (I407), and then if the winds change and you and your husband decide you want to return to the US, you can follow the spousal visa path again. Whatever, I am also curious what company or job will allow you to leave for 6-7 months at a time when you move back to the US to try and maintain your continuous residence? I assume a potentially remote job, if that is the case, finish up your naturalization, and then move.