I don't think your OPT will be invalid. Most likely you will finish your OPT and before that transfer to H1B like anyone else. Of course it would be difficult to return to school as F1.