Worried about his head

So we had 4 month check up and Peditrician is worried about his head because he has a flat back and his frontal something is hardening... I’m so worried ! She said for the next 2 weeks keep him on his tummy or sides for sleeping. Which is difficult he hates it already ... anyone having this problem?