The heat caused in the wiring will be down to slow riding pulling high current more so in the wrong gear or more especially on hills, if the controller doesn't thermally shut down to heat then the wiring (phases) will get very hot to the point they will melt.
I have had it occur once and it melted my inline fused connection as well as the plastic bullet shrouds.
As mentioned if your bike is now working correctly then it should be ok and the wiring sync/sequence order is correct.
All owners should or need to bite the bullet and forget about the scenario of ' I can't repair my bike' and carr y out simple testing with a metre, there is nothing involved that is rocket science. For most who don't understand we can help to try and solve issues if owners are willing to make the effort and follow guidance.
For the phase/hall sync there are a possible 36 combo's of wiring to test and try, all it involves is swapping wires around to see if any other combo will work. Out of the 36 combo's only a few 4 - 6 will work and some better then others
but tbh likely you won't find a better combo then you have, but it is worth a try for piece of mind.
Many times I have posted this diagram below for users to try, it is simple to follow and nothing onerous to follow.
One simply places the bike on a bike work stand or has the motor wheel lifted off the ground, simply start stop left with the three thin hall colours connected as indicated then one simply goes down each column and changes the phase bullet connections also as indicated. With each change try using the PAS or throttle to see if each change runs or not, note down the reaction from each test as indicated until you have the 36 results. Then you disregard the bad combos' and settle on the one of the best of the rest, ultimately you may end up with the combo you already have.
All in all once you get going the test takes about 30 - 45mins to complete, no bike shop you take it too will have any idea about this way to find a correct phase combo to fault find.