My visa is in an expired passport but is valid until 2022. My only problem is that there is a stamp on the top of the visa from NYC. Will I have problem at the airport?
No you will not. It's common to place the admission stamp across the edge of the visa the first time it is used.
I assume that this is a US visa and that you're asking about using it to travel to the US, and that you also have a newer valid passport. If not, please edit your question to clarify, though I don't think it would change the answer.