8-month-old baby almost dies after eating heroin capsule, mother arrested