Jerry Heller was so distraught over the way he was portrayed in "Straight Outta Compton" it ultimately killed him ... so says Heller's attorney.
Mickey Shapiro tells TMZ ever since the movie came out painting Jerry as nothing but a crook, the former N.W.A. manager has been under a tremendous amount of stress. In fact -- Shapiro says things were so bad -- Jerry barely slept and was "heart broken" over the entire thing.
TMZ broke the story ... Heller was in a car accident Friday around noon, the initial investigation states he may have suffered a medical emergency to cause the wreck. Shaprio says Jerry's family has been told it appears he suffered a heart attack before the crash.
Mickey says he believes the heart attack was brought on by the stress from the film and tells us, "Jerry Heller would be alive today if not for that movie."