A multiscale approach to study the stability of long waves in near-parallel flows