Baby’s gas

Me

My 5 week old has terrible gas. He squeals and kicks to try to get it out for an hour at least. Of course it’s at 5 am when we’re trying to sleep. He’s breastfed and formula. He gets mylicon regularly. Any suggestions?