American Taylor Townsend stunned fifth-seeded Mirra Andreeva 7-5, 6-2 to reach the fourth round of the US Open for the first time since 2019.