Welcome to EP!
I would guess a defective crimp of the connector terminal to the wire resulted in poor contact and hence heating of the terminal.
The burnt section of board could pose a problem if it has carbonised and become conductive. You would have to remove any carbonised part, find a way...