Can you post the reverse angle of the first picture showing how the wires connect? It looks a bit like the live has shorted against the earth but it's hard to tell.
The whole lot needs redoing with a proper junction box.
grams has a point, that junction box is not really designed for that quantity of cables. If it were me I'd redo it as a matter of course but I'm trying not to push you too far into the deeper water.
Can you post the reverse angle of the first picture showing how the wires connect? It looks a bit like the live has shorted against the earth but it's hard to tell.
The whole lot needs redoing with a proper junction box.