As a non-lawyer, it seems that you'd have to leave your company to join YC, meaning you'd forfeit your H1B visa.