My employer underreported ESPP in W2 for 2022. However decided to report it in 2023. How to offset it from being taxed twice?

Let’s say W2 2022 should have had 5k as ESPP gain but had only 2k. Instead of fixing 2022 my employer added 3k as espp gain in 2023. Sale happened in mid of the 2022 and not last days of year