I don’t sleep well if I eat too late. I’ve noticed this in others too. especially in this time when anxiety is fueling the sleeplessness and schedules are turned upside down with isolation, making sure you eat right is important.
When I have sleeping problems, I use CBD oil. I was skeptical about it but it really works. Also, sport may help as well, just work out regularly. Plus, it's better to have the last meal 3-4 hours before bedtime. If nothing helps, it's better to apply to a doctor.