A two-month-old baby is in hospital after being flung from a car window during an accident in Sydney’s east overnight.