I am also facing restarting problem in my m30s. Why samsung is not servicing free of cost for all those who are suffering from this problem. This is the fault from their side.
When i use my camera of phone. Its automatically switched off/on. And sometimes its not open. I have lost Many times my important data due to this problem. Samsung custmer care(haldwani) also not fixing my problem.