Can motion tracking and Video Stabilization constrain to y axis only?
In the compositor the Movie Input nodes has x and y offset values, once you add a tracker to the 2D stabiliser these become active. Just use the correction you need and plug it into the node distort>transform.
In your case just use the y value.