I don't think you have to leave if you came with H1b status. IO has no jurisdiction on your pending 485 case.