I filed my 2023 w-2 with my 2024 tax return.

I mistakenly filed my 2023 w-2 on my 2024 tax return. It had already been submitted and is processing through the IRS. What should I do? Wait until it has finished processing or amend my return to remove the w-2 from the previous year?