There is a good reason why instructors tell their students not to go into deco and why dive computer manuals warn you about it in bold CAPS.
Like most sport divers, you probably only carry one air source when you dive, the cylinder on your back. If you run out of air or suffer a rapid loss of air supply, for example because of a regulator free flow, a blown o-ring or a split hose, then, unless you have an alert, calm and capable diver nearby who has enough air and is both equipped and willing to share it with you, the only survival option you have is to make a slow controlled ascent directly to the surface.
And, if you have not exceeded your no-decompression limits, you should be able to make it. You will not be able to make a safety stop on the way up but that is not going to be life threatening. After all, a safety stop on a no-decompression dive is a luxury rather than a necessity.
On the other hand, if you have gone into deco and your computer is showing required decompression stops, then going straight to the surface and missing those stops is definitely a health risk.