It is unlikely to be rejected by the electronic filing process. Instead, farther down the road the IRS would examine the return and match documents during processing and the error could be caught at that time.
At this point, you should wait to see if your return is accepted or rejected for another reason. Then, if it is accepted, you can amend it to make the correction and remove the 2019 W-2.
Keep the following TurboTax article handy for reference. Amending instructions will be available a bit later in the tax season after the IRS has started processing returns.
How to amend (change or correct) a return you already filed
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"