How to protect your hair while you’re sleeping, explained by an expert