That’s not really true. Depending on where you live in NY, prices are very affordable. Also, NYC has neighborhoods that are also affordable.
You mentioned that “prices double in less than 4 years”. What happened 4 years ago? People left the city during Covid. Yes, that meant prices went down, but a lot of sellers pulled places off the market too. There was very few available places, so it’s not a valid point of comparison.