How to stop habit eating?

My son is 9 months old. He wakes up exactly one hour from when he’s supposed to wake up to eat. He will wake up, scream, eat then go back to bed for about one hour. I’m pretty sure it’s just out of habit because once in a while he will sleep all night