Four years after her debut album, the pop prodigy is back with a testimonial to heartbreak and solitude