I am currently on OPT and woking for a company in Virginia, OPT will expire on Aug 1st. The company also agrees to sponsor for my H1B For FY2018 H1B. However, if I fail the lottery, I still want to stay in the US to wait for the FY 2019 H1B. Thus, after my OPT expires on Aug 1st, I want to attend a community college in my area to maintain my F1 status. However, if I get picked in the lottery, my status will be changing from F1 OPT to H1B, at the same time, It will also be changed from F1 OPT back to F1. Will that create a conflict in USCIS system thus, making it illegal?
Thanks for the answer.