Searches of a Cosmological Gravitational-Wave Background with 3G Detectors: Probing the Very Early Universe