Cows milk help.

Ch

My daughter has been off formula for about 3 months now we did a straight switch and she was absolutely fine. We are down to 2 bottles a very small one in the morning and a full bottle before bed. For the last month or 2 she’s been very constipated but her diet is very varied and she has plenty of water. Spoke to the doctor as she is on medication long term. Lately she has been sick during her morning milk it like comes right back up again and is very thick. I’m not sure if she’s not agreeing with the milk and I need to switch it? She is not sick at all for her bed time bottle though? Anyone have any insights? She has full fat cows milk thank you.