The Nintendo Switch console is doing things on its own or isn't working properly
There is a possibility that the console is receiving input from another controller.
→Start System Settings from the HOME Menu, then select Controllers and Sensors ⇒ Disconnect Controllers to disconnect all controllers and delete controller pairings.
You will then need to pair the controller that you'd like to use to the console.
The Joy-Con controllers will pair automatically when they are attached to the console.
When the console is in TV mode, you can pair a Nintendo Switch Pro Controller by connecting it to the Nintendo Switch dock using the USB charging cable.A problem may have occurred with the control sticks.
→Start System Settings from the HOME Menu, then select Controllers and Sensors ⇒ Calibrate Control Sticks to see if this fixes the problem.A problem may have occurred with the gyroscope.
→Start System Settings from the HOME Menu, then select Controllers and Sensors ⇒ Calibrate Motion Controls to see if this fixes the problem.Please check to make sure that there are no problems with controller buttons.
→Start System Settings from the HOME Menu, then select Controllers and Sensors ⇒ Test Input Devices ⇒ Test Controller Buttons to make sure that the buttons are functioning correctly.
If you try all of the above suggestions and nothing fixes the problem, please contact Nintendo Customer Service.