Unity Starter Asset First person controller camera problem

Is there any solution to choppy camera and lag spikes? I cant figure out . something is happening wrong
Whenever i try to change Input System or adding new input it happens. the new input system causes this.

It fixes itself when I open a new starter project. Thanks.