I did a research and found H4 like you is fine. This is a good news. Sorry about the early confusion. Still, I encourage you get a research on this matter before it becomes cristally clear.
*******
Chat User : Ms. Murthy, great service. How long can one on H-4 stay outside the U.S. while I-485 is pending? Thank you very much.
Attorney Murthy : A person may stay outside for as long as they wish, until the H-4 visa stamp is about to expire or the Advance Parole is about to expire. One must reenter the U.S. while either document is still valid. Even if the BCIS approves the I-485 while one is abroad, one may be paroled and then obtain the I-551 stamp in the passport at the local BCIS District Office.
*******
Chat User : Ms. Murthy, great service. How long can one on H-4 stay outside the U.S. while I-485 is pending? Thank you very much.
Attorney Murthy : A person may stay outside for as long as they wish, until the H-4 visa stamp is about to expire or the Advance Parole is about to expire. One must reenter the U.S. while either document is still valid. Even if the BCIS approves the I-485 while one is abroad, one may be paroled and then obtain the I-551 stamp in the passport at the local BCIS District Office.