Will I get in trouble for filing my W-2 from last year with this year's form? I was told that if last year was missed, I still had to file or face a penalty.

I was told that I'd have to file the old W-2 within the span of 3 to 5 years or face penalties so I went ahead and filed my 2023 W-2 with my 2024 but now I'm not sure if I should have done so.