Short-wave analysis of 3D and 2D instabilities in a driven cavity