analogWrite(0) just provides a zero volt signal. What that actually does depends entirely on the specification of the motor driver.
On a quick look round I can see nothing in the specification of your driver to suggest that it contains any brake, which normally needs additional circuitry. Normally a zero volt signal just removes power from the motor and lets it freewheel.
But if you have a driver specification that mentions braking then provide a link to it.
Once more, it is a question of what the specific driver does. Have you tried asking the manufacturer or vendor of your motor driver? They are more likely to know than a bunch of random people on an Internet forum.
Please remember its important to post links to the specific datasheets/manuals of all the hardware you
mention, so we know exactly what you have and you are likely to get informed answers, not guesses.