A previous dentist recommended -- paradoxically -- actually clenching your teath consciously a few times for a few seconds each time before going to sleep. The logic for this was something like how it would make your brain more conscious of what was going on to prevent it from happening when you were asleep. I think the other suggestions here on reducing stress, reducing weight, getting enough magnesium and so on might work better though?