Some like it hot—but that might not be ideal if you’re trying to get a perfect sleep score. An expert weighs in.