You should eat late meals and try to eat heavy, rich foods within two hours before going to bed because if you eat spicy or acidic foods can cause heartburn symptoms and you eat foods can take a lot of work for your stomach to digest and
The second cause is the consumption of caffeine caused insomnia.