It shouldn't be freezing in the first place, especially when it's on stock firmware (or in safe mode, which mine has crashed in before).
My phone went to Phones4U's repair centre, where they couldn't replicate the fault, then to Samsung's repair centre, where they couldn't replicate the fault...