Ariana Grande has described the last few months as "painful yet beautiful", as she endured several heartbreaks, but also released new music.