Usually, applying for AOS is a gray period area. Not a full fledged status but also no status. You can only fall back on your previous F-1 status if you maintained this status during the duration of your AOS status precisely for situations like you are facing now, i.e. divorce and the yanking of your AOS status. You cannot obtain the H-1B unless your F-1 was maintained but you can certainly apply for the H-1B and most likely be sent overseas for eventual stamping called "consular processing" to clean the slate. Filing for AOS is still considered a period of authorized stay during the pendency but you cannot fall back on the F-1 unless you fully maintained it during the pendency of the AOS. If you cannot fall back onto the F-1 you cannot change status here in the US to another non-immigrant visa category such as the H-1B, but you will be ordered to consular process by USCIS. Short interruption perhaps will not bother the employer too much.