By Melody Chiu
March 25, 2016 at 12:35 PM EDT
John Shearer/WireImage

This article originally appeared on

Jennifer Lopez has a hit show on NBC, sings to huge crowds for her Las Vegas residency, and is mom to adorable 8-year-old twins Max and Emme, but the superstar admits just a few years ago life didn’t seem so rosy.

When she and Marc Anthony filed for divorce, “it was devastating and awful,” she says in The Jess Cagle Interview with PEOPLE and EW editorial director Jess Cagle. “I think both Marc and I thought at the time we would be together for the next 40 years until we die.”

Though Lopez, 46, calls the failed marriage “the biggest disappointment of my life so far,” the star stresses the split was still the right decision for her.

“I felt like at that time I had lost my way a little bit, of who I was in trying to make the marriage [work],” says the Shades of Blue star (the show’s finale airs March 31).

“I had been married twice before and I didn’t want this to be a failure … I just put all my heart and soul into that and forgot who I was as an individual a little bit.”

After she and Anthony called it quits, Lopez felt a sense of “empowerment,” she adds. “It was the right thing.”

Watch above.