Sorry, the tax code is clear. If the Qualifying Relative had gross income of $4,700 or more in 2023 then they cannot be claimed as a dependent under the QR rules.
If she would have been your only dependent then you cannot have Head of Household filing status.