Psl 11:3- If the foundation be destroyed, what can the righteous do?
Another wrong faulty foundation many have laid is to marry with pregnancy before marriage. In the school of deliverance, experience has shown that when people do things outside God's laid down order, it open doors for demons&torment.
Both the parents and the child needs deliverance, you may not accept this truth but I pray God opens your eyes to understand something called LEGAL GROUNDS in the spirit realm. That is when the devil takes hold of a wrong to punish you perpetually.
Thanks be to God for His mercy, there's way out in Christ Jesus, even in the old testament, Isaiah said the lawful captive shall be delivered. Take these steps to be free from the negative consequences of your action:
1- Give your life to Christ
2- Go and marry properly(pay dowry)
3- Demand your freedom from the devil
&break all negative consequences your action may have on you&your child.
As a believer, you have the authority to be free from the devil, restitute your ways into freedom.