Topologically protected second harmonic generation via doubly resonant high-order photonic modes | Synapse