We studied the quantum critical behavior of the second antiferromagnetic (AF) phase in the heavily electron-doped high-Tc pnictide, LaFeAsO1−xHx, by using a 75As and 1H nuclear magnetic resonance (NMR) technique. In the second AF phase, we observed a spatially modulated spin-density-wave-like state up to x=0.6 from the NMR spectral line shape and detected a low-energy excitation gap from the nuclear relaxation time T1 of 75As. The excitation gap closes at the AF quantum critical point (QCP) at x≈0.49. The superconducting phase in a lower-doping regime contacts the second AF phase only at the AF QCP, and both phases are segregated from each other. The absence of AF critical fluctuations and the enhancement of the in-plane electric anisotropy are key factors for the development of superconductivity.