My controller had this issues, kept pressing the PS button so this turns the controller on and off randomly. I have some background in fixing electronics, my warranty has expired anyway. This issue is notorious with laptop keyboards because they have the same flex keys on the Ps4 controller. If you know how to open it up (Search ps4 controller disassembling on YouTube) then buy this flex and replace with your controller and it shouldn't press keys by itself anymore.
| Circuit Film Button Ribbon Conductive Cable Keyboard Flex PCB Replacement for PS4 Playstation 4 10XX 11XX Controller Accessories
https://s.click.aliexpress.com/e/VSXFgQk