Chosen Solution

will teardown reset the operating system on a galaxy s7

As long as the memory chip is not damaged ,shorted or replaced ,you can do just about anything you want to the phone repair wise.

As long you do not damage components on the motherboard, your data including the OS is safe.