Cause of quenching in epoxy impregnated superconducting coils