A lifelong insomniac tests the internet’s most obsessive nighttime rituals — from magnesium to wind-down hacks — to see ...