I had the same problem with my S3 freezing and turning itself off.
I found that if I turned off all LED notifications in the Display settings my S3 was back to normal, okay you lose visual flashing notification but you still have sound and notification in the display panel.
Until Samsung...