A security guard who deliberately rammed his car into a crowded pizzeria in France told investigators he was a suicidal habitual drug user and had consumed "a large quantity" of painkillers the day before the act that killed a girl, a prosecutor said.