That problem is usually caused by not setting up a stick deadzone, the stick is never perfectly centered, sometimes enough to cause undesired input, some games allow you to adjust it as well, because it's different from controller to controller (xbox360 controllers having it more often (we have tons with this issue at our college xD), they are fun if the stick steers a camera though, gives a nice smooth panning motion

Setting up a deadzone is as simple as clamping the stick input

If it's not that, welp i tried

Cipher