Dualshock 4 went insane, presses buttons

Hello, so Yesterday I was playing on my ps4 and got a "DS4 disconnected. Charge the battery." message. Plugged the controller in and continued playing, but after 1-2 minutes it stopped responding, kept sending my old button presses and then disconnected with the "Charge the battery" message. While being plugged in. Since then, the controller is unresponsive while unplugged, no lights or any response, and only turns on when it's connected to an outlet or the ps4. When it turns on it spams the Share button, DPAD-right and the PS button, while also sending any button combination that I press. Disconnecting the controller switches it off. Just disassembled it, there's no visible damage to any of the components and contacts. It is a gen 1 controller, motherboard JDM-001. Also tried connecting it without the battery, produced the same result- insanity when plugged in, nothing when not. Please help me find a solution

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 1
crwdns2934285:0crwdne2934285:0