Target has little rubber spiral things that theoretically should help the fraying. I just had to replace my macbook charger and added one of these, so time will tell. Package of six in assorted colors found in the Dollar Spot section for $3. Just looked it up and found them on Amazon:
https://www.amazon.com/VizGiz-Protector-Management-Protective-Protectors/dp/B07MBJ2B4N/ref=sr_1_8?dchild=1&keywords=spiral+cord+reinforcement&qid=1618842971&sr=8-8.
Also, if the cord does began to show sign of wear, I have added Sugru moldable glue (like rubber clay that hardens) to salvage them.