I am on L2 visa and company has filed H1 B for 2018 and my name is picked up in the lottery but not approved yet.

They have eliminated my position and are withdrawing my H1 B petition.

Will my H1 B visa will still be valid?

Can some other company can sponsor ? If yes, is there any time duration before which I need to find a employer.

Please let me know the options. Thanks