Bless Coco. It's possible she could have an inner ear problem, as that can create issues with balance, and may account for the head shaking. Is it violent, or more like a tremor?
Think a visit to the vet might be able to shed more light on this. Sending Coco a gentle little chin tickle.