Will insomnia cause chemical/misscarriage?

I feel like the only real sign before I even found out I was pregnant was the inability to sleep. I've been able to sleep only like 2.5 to 3 hours at a time for the last week or so. Will this cause me to miscarry? Is there anything I can do about this? I'm starting to worry that I'm not doing the right things to sustain the pregnancy.