It's normally used to mean the mental anguish we put ourselves through, especially when waiting for important news (eg. exam results). You imagine yourself dying one hundred times.
The common expression is "a coward dies a hundred deaths" (ie. a coward will imagine him/herself dying a hundred times), which is a misquote from Shakespeare's Julius Caesar:
"Cowards die many times before their deaths;
The valiant never taste of death but once."