Ear infection

Mone
My baby has an ear infection, congestion, and fever. I went to his Dr and he gave him medicine. Last night he kept waking up screaming and if he was laying down he cried. Do I let him sleep in his chair sitting up? How can I help him? Ftm and he turned 4 months yesterday. :(