H1B visa cancellation during H4 Visa Renewal

Hello,
When I went for H4 Visa renewal recently, consular officer cancelled my H1B visa (expiry of Feb 2025) which was never used and never entered states. As the H1B visa got cancelled (not denied), will I be able to use the underlying petition for use in future like

  1. H1B transfer to another employer
  2. Change of status from H4 to H1B while in USA.

Any information would be really helpful.

Thanks
Surya