Sim card factory reset my S7 without asking permission
A.) Unfortunatelly if you didn't made a backup from your pictures, apps, data it's all gone.

B.) I'm a bit confused because your phone won't be download and install any system update without prompt. The auto download part is hardly possible but the auto-install part, is quite difficult to believe.