MHz gravitational waves from short-term anisotropic inflation