Is the baby a morph like champagne, spider or woma?
It most likely isn't due to the shed. It can be due to parasites or chronic malnourishment. But IBD is still possible as well...
If the baby does have a respiratory infection, that could also be a cause as they will sometimes hold their heads up to help the breathe.... But not usually to the point where it can be considered star gazing.