Does music acting CRAZY and acting up have to do with the iPhone 8 dongle or something else?

Whenever I use headphones and plug them into the dongle, anything I listening to like music, podcasts or anything for that matter starts acting up (pauses randomly, skips songs, forwards randomly). I have restarted my phone many times and nothing has really changed. When I do keep the iPhone and dongle still and not moving, sometimes I can actually listen to like one song in peace… The weird thing is that when I plug in the AUX cable in my car, music works perfectly fine. If I could, I would just throw this away but I'm not rich. Some Please give me a solution.

Added (1). Sorry for the bad English, forgot to edit ^

Added (2). dongle is the adaptor cable

Bad connection to, or a broken wire in, the headphones.

Makes the phone think you are operating a wired remote control.

Remedy should be obvious.