Impact of QCD Jets and Heavy-quark Production in Cosmic-Ray Proton Atmospheric Showers up to 1020 eV