Sofia Richie was "absolutely terrified" when she started having contractions six weeks before giving birth.