That sort of damage only happens one way. A bad termination in the connector.
The bad termination caused excess heat and that accelerates the problem until…
That said it is on the ‘power in’ so there is a high probability the LED driver is fine. Should be an easy repair.
Cheers
G