In surface science, surface flashovers are discharge phenomena that occur at the gas/vacuum-solid interface. Spacecraft in the universe suffers from high-energy electron irradiation while it works under a high DC operating voltage, and thus, surface flashover threatens the safe operation of spacecraft and limits human’s deeper exploration of the universe. To unravel the influence mechanisms of electron beam irradiation (EBI), surface flashover voltages (Vf) of epoxy composites during EBI, short-term after EBI, and long-term after EBI are investigated, and the behaviors of molecular structure, deposited electrons near chains, and radiation electrons under EBI and their effects on Vf are separately clarified. For long-term after EBI, EBI induces crosslinking of molecular chains and introduces deep traps to the solid surface, which impedes electron emission and surface charging, and thus Vf increases. For short-term after EBI, the deposited electrons suppress charge injection to the solid, and Vf further increases. During EBI, the high-energy radiation electrons stimulate gas desorption and directly participate in plasma propagation, leading to a sharp decrease in Vf. This work comprehensively explains the influence mechanisms of EBI electron modification, deposition, and migration on the Vf, which offers a theory to guide the prevention of flashover for spacecraft.