How to exclude a module from being uninstalled during import?
This will only work with drush 10. So drush should be updated to version 10.
With drush version lower than 10, it will work only from the UI.