Quantum geometry induced second harmonic generation