One idea is to use a short 6” extension cable out of your MacBook, so that any tug on the cord will always pull in a straight line and hopefully separate at the extension end, not the MacBook. This one has a 90* plug at the computer end which would reduce torque on the computer: https://www.amazon.com/dp/B000068O6B/
I use a 90 degree Hosa adapter and then an FX loop cable (1/4" TRS to dual 1/4" TS) from there into my mixer.