Using the file exclusion option in windows privacy and security one can avoid windows defender to delete required file