Question: how can an object have zero velocity but nonzero acceleration?
Answer: Acceleration is the rate at which an object's speed and direction are changing with time, so whenever an object passes through zero speed as it reverses directions it has a non-zero acceleration but a speed of zero. The simplest example is a ball thrown directly upward.