Ps4 controller does something by itself?

Ab
- in PlayStation
1

I recently bought a new dualshock 4 v2 controller and connected it to the ps4. But if I now play gta 5 then he presses or I don't know whether he presses it. But sometimes he changes the weapon in the car and when I get out he changes the weapon in the weapon wheel. So he can't press the buttons on his own. Because there are 2 different or 3 different buttons with the control button together.
But he doesn't do it in other games. And as I said, he's already doing it since I've got the new one, so it's unlikely that it is broken.
or is it probably because I still have the old ps4 from 2015. Or what else can it be.
ask for help because this is quite annoying and is usually unplayable.

Or

To be honest, no one can really help you because I have had several negative experiences with the quality of PS4 controllers such as only half-working joysticks or a leaked battery

To avoid this in the future, just stay away from sony