Partial closure of the airway causes body shaking while sleeping to re-establish normal breathing pattern. Know the reasons for your body shaking by consulting an expert doctor. This will help you diagnose and treat the problem at the earliest.