If it is a short in the wiring where it is moving and coming separating it would happen anywhere. A small broken lead in the wire causes many problems. Please just go all over the wire and where it is wired into plug very carefully looking for a loose section or a split . If it is this it could cause a fire when shorting.
Coming from an electrical family if I miss this they are very short on helping. Just tighten the leads in the plug a little.