Second harmonic generation in the tilted type-I Dirac metals under terahertz frequency regime