I hope this comment will help someone in the future.
So my DS4 started acting weird, let’s give an example.
i was playing Fallout4(FPS) and my controller started acting weird:
-whenever I pressed the aim button (L2) my character would start running in the left direction while aiming.
-also I couldn’t sprint(L3)
The issue was that my controller was really dirty on inside, it’s weird how it can get dirty from the inside but it does, you basically have to open the controller and clean it, every single piece you can.
if it still acting weird then you should probably just buy a new one, but cleaning my controller in my case, fixed the issues.