Why has my baby been waking up screaming ?

Hi moms, I’m sorry if this is a stupid question 😫. Is it possible that my baby was fine with Enfamil Gentlease Neuropro for the first 2 months and then start getting gassy from it after? We switched to enfamil Gentlease beginning of sept and she was fine but for about a week now it seems like she’s more gassy. She kicks her legs a lot while drinking. During the day she’s actually fine but comes night time she has been screaming around 8Pm ( it’s when my husband puts her to bed) . Then she goes to sleep after 20 mins of screaming and wake up half hour later to scream crying again for a good 20 mins or until I take over because she seems to calm down when I take her from my husband. Does this mean she could be gassy from the formula or maybe she’s having separation anxiety since I’m with her all day? We thought she might be overtired so we tried to give her a nap from 6-630pm but that didn’t stop the screaming. She’s 3 months old. This whole screaming started about 7-8 days ago. we don’t know what else to do😫😫. Thinking maybe we should switch formulas? But to what? Please I’m willing to try anything at this point to stop this nighttime madness 😫

Note: we also tried giving her mylicon before giving her the bottle but that didn’t help.