Many M30s users face restarting issues. Here's my post on a similar one.
The issue isn't fixed yet but you can check it to
Count me in. I've tried many things but none worked. I haven't tried
factory reset yet.A few days ago, I received a message from Samsung
saying that they are working on fixing this issue and will be sending a
binary update soon.