I see some misleading information here so you should know that:

Reinstalling/unistalling avast will not lead to your in avast passwords stored passwords wipe out!

You can remove component from Settings->Components - in case of Passwords you can just uninstall it form there

You should also remove browser extensions from browsers you have installed Avast passwords extension in if you want to quit with Avast Passwords
In Safe Zone Browser just disable passwords extension in Extension control center

Of course you can export all your passwords, you have several options - csv, format for chrome and/or firefox import - see Settings-> Passwords for more details

If you don’t want to uninstall the component you can simply lock your vault and remove passwords storage using Forgot password recovery option which deletes vault in case you forget master password. This option is available with vault in locked state in Settings->Passwords. Note that this option is not available if you have synchronization enabled. If that’s the case, turn off synchronization first and then Forgot password option become available.