My 21 taxes W2s from my employer were duplicates and I was charged twice for my taxes

In 2021 my employer sent a duplicate W-2 which will result when you paying my taxes twice how do I get it back and what do I do I follow an amendment but I filled it out wrong I didn't know that I would have to double the amount I made that year is that true