Theme files will get overwritten each time you click update that theme in WP admin panel.
Switching themes back and fourth will NOT destroy your modifications made in theme files or theme settings kept in database.
Switching theme will destroy (reset) its setting in database only if it also has some activation hooks to reset its setting upon theme activation.