Alexander Zverev is through to the US Open quarter-finals after rallying from one set down to defeat Brandon Nakashima on Sunday.