Usually if the terminations over heat, there is significant discoloration and evidence of thermal damage to the breaker. I don’t see that here.
There is something odd about those cables though. It almost looks like the insulation was taped on and it’s the tape that is failing. Maybe it’s just my old eyes on a small phone screen though b
My Money is on undersized wire, overheated wire terminations.
Everyone forgets the motor load adjustment x 1.25
And is it just me or does B phase appear to be aluminum while A and C are copper?
Never mind I think its just dust (some on top of breaker as well)
All the wires are copper. The conductor is just that discolored
Have you had a chance to do an amp draw or IR scan on this with the pump running?