If your laptop is a 2-in-1 (convertible), it might be switching into or out of "Tablet Mode" (Windows 10) or a similar Continuum feature (Windows 11) when it detects a touch. This mode often optimizes the interface for touch input, which can feel like it's "jumping" screens.
Official Site