File Second H1B Transfer before First H1B transfer Denial – i94 expired, Old H1B expired

I94 expired on AUG 2017,Moved to another employer filed new petition on Apr 2018(end of 240 day period) and continued working with the same client.
first H1B is denied on OCT 2018 while my second petition is still under process.Based on my Attorneys advice,We withdrawn the second H1 on Feb 25 2019 after recieving couple of RFE’s on this bridge case.
I left the country on Mar 7th 2019 to re apply New H1 after 365 days cool off period in 2020 April.
As per USCIS,My “Unlawful presence” begins on the day of first H1B transfer denial in this case "
based on the above statement i had stayed 120 days counting from OCT 31 2018 to Mar 7 2019 which is less than 180 days stay.
My concern is,Even though the first petition is denied my second H1b is still under process with USCIS. Am i still illegal to stay?Is it going to effect my Future H1? Please answer.

Duplicate of File Second H1B Transfer before First H1B transfer Denial – i94 expired, Old H1B expired