To add to my previous comment, here is another reference from USCIS explaining that immediate relatives are exempt from this bar to adjustment of status.:
https://www.uscis.gov/policy-manual/volume-7-part-b-chapter-2
F. Bars to Adjustment of Status
An applicant may not be eligible to apply for adjustment of status if one or more bars to adjustment applies.[99] The bars to adjustment of status may apply to applicants who either entered the United States in a particular status or manner, or committed a particular act or violation of immigration law.[100] The table below refers to aliens ineligible to apply for adjustment of status, unless otherwise exempt.[101]
Aliens Barred from Adjustment of Status
Alien
INA
Section
Entries and Periods of Stay to Consider
Exempt
from Bar
Alien Crewman[102]
245(c)(1)
Only most recent permission to land, or admission prior to filing for adjustment
VAWA-based applicants
In Unlawful Immigration Status on the Date the Adjustment Application is Filed
OR
Who Failed to Continuously Maintain Lawful Status Since Entry into United States[103]
OR
Who Continues in, or Accepts, Unauthorized Employment Prior to Filing for Adjustment
245(c)(2)[104]
All entries and time periods spent in the United States (departure and return does not remove the ineligibility)[105]
VAWA-based applicants
Immediate relatives[106]
Certain special immigrants[107]
245(k) eligible[108]