Valid Inference in Partially Unstable GMM Models