Nothing to worry. God has power over all things; seek purity to your heart from God; God is Most Forgiving; Most Merciful.
39.53 Even if you had perversely caused grievous penalty upon yourself, do not lost heart upon the Mercy of Allah; Allah forgives all your sins. Allah is Most Merciful, Most Kind.
Your child will not be affected at all as long as you believe in the above verse: Most Merciful, Most Forgiving, Most Kind.