Sleeplessness is very common in the late stages of pregnancy, and it won't harm your baby. However, it can make you feel run down and exhausted. It's also possible that a severe lack of sleep in the last few weeks of pregnancy can mean a longer labour. Check out this article. https://www.whattoexpect.com/pregnancy/symptoms-and-solutions/insomnia.aspx