I have similar issue.
After I replaced a stick on my JDM-040, both L2 and R2 became always active. I checked that on both PS4 and PC.
I disassembled the gamepad and found that there is noise on contact pad pin 3. If I touch it, the signal will drop off.
It looks like a pull resistor is dead or there is a short circuit on this contact.