Persistent correlation between superconductivity and antiferromagnetic fluctuations near a nematic quantum critical point in FeSe1−xSx