Not sleeping well since switching to milk

Bailey

We transitioned our son to whole milk less than a week ago and now he doesn't sleep well at night. He gets dinner and a cup of milk before bed and in two hours he's up screaming. He has also been waking up earlier. I'm not giving in and switching back to bottles/formula so what am I supposed to do for him? He doesn't want milk when he gets like this either. Any advice would be nice.