I am pretty sure answer is "no"
The buttons as such, could in theory be disabled by opening the headphone and removing said buttons physically, needing some soldering and tinkering. This would end up with broken headphones in 95% of cases unless you knew what you were doing.
In short, I wouldn't try.
If you want "ugly" fix, attach lots of tape or equivalent on top of said buttons, making accidental swipe not do anything.
If you want "messy" fix, superglue is your friend.
If you want my "opinion" don't do any of those.