In that last pic, where all the wires kinda come together, there's (2) blues and a red joined in what appears to be some sort of shrinkwrapped barrel connector. It looks like a very wonky solder joint is there. Same goes for the barrel connector behind it.
IF it were me, I'd start by getting...