But you aren't dying from the dream, you are dying indirectly from it due to complications.

If you have a bad heart or poor health, it could bring on a heart attack or stroke.
Then you died due to a stroke and a heart attack, not because you had a dream. If you apply that logic, we can die from everything. Watching TV, going to a fireworks show, playing a computer game.