Jennifer Lopez opened up about how she was "physically paralyzed" in her late 20s due to extreme exhaustion.

The 52-year-old singer recalled the time when she would sleep barely five hours at night and was used to being on set all day, even working on the weekends.

"There was a time in my life where I used to sleep 3 to 5 hours a night. I’d be on set all day and in the studio all night and doing junkets and filming videos on the weekends," Lopez wrote in her newsletter, ETCanada reported Sunday. "I was in my late 20s and I thought I was invincible."

Lopez revealed how she realized that she is overworked and stressed. "Until one day, I was sitting in a trailer, and all the work and the stress it brought with it, coupled with not enough sleep to recuperate mentally, caught up with me," she wrote.

The singer shared that she was feeling "totally normal" and was "thinking about what I needed to do that day and all of a sudden I felt as if I couldn’t move."

Lopez said she was "completely frozen" and "couldn’t see clearly."

The singer explained it happened due to "a classic panic attack" caused by exhaustion, noting that she was not even aware of the term at that time. She was picked up by her security guard who drove her to the doctor.

"By the time I got there, I could at least speak again and I was so terrified I thought I was losing my mind," she added.

Writing about what the doctor advised her at the time, Lopez continued, "He said, 'No, you’re not crazy. You need sleep … get 7 to 9 hours of sleep per night, don’t drink caffeine, and make sure you get your workouts in if you’re going to do this much work.'"

That was the moment she realized "how serious the consequences could be of ignoring what my body and mind needed to be healthy — and that’s where my journey to wellness began."

Lopez concluded by noting that her aim is "to live a very healthy and balanced life."

On the work front, the artist will next feature in the movies like "The Mother," "Shotgun Wedding," "The Godmother" and "Atlas."

Jennifer Lopez
Jennifer Lopez arrives for the 91st Annual Academy Awards in Hollywood, California, on Feb. 24, 2019. Getty Images/Mark RALSTON