My phone charging cable gets easily frayed after a short time of use. Especially at ends of the cable.
To prevent this from happening again on your new cable, take an electrical insulation tape and wrap the ends of the cable that are most prone to bending.
If you don’t have an insulation tape, any other tape would work. Do this and you won’t have to buy another charging cable at least for a while.