Feeling like passing out, especially when you lie down, is concerning. Common reasons for this feeling are anemia, heart problems, neurological problems, or blood pressure changes. I would schedule a visit with your health care provider right away, as they need to investigate what is happening to you. I would also mention the difficulty in sleeping, as well as the increase in headaches.