Chosen Solution
Recently, my headphones got a bit wet and now every time I plug in my headphones they either pauses music, skips music, and plays at random times.
Hello, try to clean the inside of the buttons and make sure they’re not wet by following this guide : Apple EarPods Teardown