NY taxes were withheld in error.I earned no income in NY. I’m an NC resident and filed state taxes in NC.What do I need to file to get the NY taxes refunded?

Employer withheld NY state taxes in error for the first two months of my employment.  This was corrected to NC but I am not sure how to file a second state return for NY to get refund.