I have found a temporary solution for this.
My new S6 keep restarting itself every minute.
The solution:
-Play a song on spotify on the phone
-Turn on your laptop. Play that song on your pc.
-Audio on samsung should stop.
-Phone should stop rebooting itself if you don't close spotify app.