“For how can those who abandon their faith be brought back to repent again? They were once in God’s light; they tasted heaven’s gift and received their share of the Holy Spirit; 5 they knew from experience that God’s word is good, and they had felt the powers of the coming age. 6 And then they abandoned their faith! It is impossible to bring them back to repent again, because they are again crucifying the Son of God and exposing him to public shame.” - Hebrews 6
"Brothers and sisters, if someone is caught in a sin, you who live by the Spirit should restore that person gently. But watch yourselves, or you also may be tempted"
Galatians 6:1
There is a difference between 'losing faith' and being 'caught in sin'.