I would encourage every parent to help their child make the 9 First Fridays, or 5 First Saturdays, or Double Great Novena, to the Twin Hearts Together - 9 First Fridays and 9 First Saturdays simultaneously, after confession and a good preparation - shortly after their First Holy Communion. https://www.english.santisimavirgen.com.ar/dos_grandes_novenas_eng.htm The Savior promised those who complete it in their baptismal innocence will never fall into mortal sin all their life - a priceless grace that efficaciously ensures they will not apostatize or fall into other grave sin. Please try the Novena. It is extremely powerful and it works. And in general, the key is to ensure children fall in love with God, and experience His grace right from their youth, especially in Holy Mass and the Holy Eucharist.
I agree with the other suggestions and advice, but God is powerful enough to grant the efficacious grace to overcome any temptation, provided we duly make use of the necessary means to obtain that grace. To obtain perseverance, to triumph over even the possibility of ever committing mortal sin again, a deep experience of the Love of Our Eucharistic Lord in one's infancy or early childhood is a must.
This is the Promise, "12. Those that make this novena in their baptismal innocence (especially the children) will never offend my heart with serious sins." and like all the Lord's promises, He will keep it even if we think He cannot. Teach your children to love and console the Hearts of Jesus and Mary right from their youth, to offer Holy Communion as acts of love and reparation, and keep the First Fridays.
You will find very few other devotions to which such a great grace is promised. To the Way of the Cross said every day, it is granted. To the 3 Hail Marys, said every day morning and night - this is recommended by St. Alphonsus and others - it is also granted. But all these devotions require continual practice on the part of the child, whereas the other can be completed before the children leave home.