From experience, this is the most fragile part of earbuds. After some wear and tear this junction is always the first to go.
So here is the solution. If you don't have a spring on hand (I'm assuming most of us don't), take apart a used pen and grab the spring in the barrel.
First, coil the spring around the earbuds. Like so...
So for those who don't have time, too lazy, etc. and didn't watch the video this is how the spring should look at this point.
Now push the spring down on the plastic part of the earbuds.
The end result looks like this.
The idea is that the spring limits the degree to which the junction can bend and helps preserve your earbuds in the process!