A two-month-old baby suffered a head injury when their pram rolled into the side of a train travelling at 35mph, a report has revealed.