Quote:
"Generally, if you have a pending Form I-485 and you leave the United States without an advance parole document, you will have abandoned your application"
Source:
https://www.uscis.gov/green-card/while-your-green-card-application-is-pending-with-uscis
Also, quote:
"If you depart the U.S. while your Form I-485 is pending without first obtaining advance parole, USCIS will deny your case unless you fit into a narrow exception for people with certain nonimmigrant statuses."
Source: https://www.uscis.gov/green-card/green-card-processes-and-procedures/travel-documents
Now, I am not a lawyer, but my understanding is, that exception is tied to AOS on basis of employment. I don't think it covers your family based petition.
Others can correct me.