Imprints of Early Universe on Gravitational Waves from First-Order Phase Transition in QCD