At times, Sara Bareilles was afraid of her grief and did not want to go to sleep.