To add some information -- a safety stop is basically a way to slow the ascent in the shallows. Divers with weak skills have the most trouble in shallow water, where the proportional pressure changes are also the biggest, so the safety stop is a way to ensure enough time is spent in the shallows to offgas, and also to slow what may well be a steadily accelerating ascent. A safety stop may safely be omitted on almost all dives (except the ones with a "mandatory" safety stop, and how that's different from a decompression stop is something which has NEVER been clear to me) but it's advisable to keep the ascent rate in the shallows as slow as you can. If the OP was struggling to stay on depth, it's likely he wasn't rocketing to the surface (although it's not impossible), so the ascent rate probably wasn't crazy. Even when it is, most of us survive the event. I did more than one uncontrolled, feet-first ascent as a new diver in a dry suit, and I'm still here to talk about it.
Deeper understanding of what you're doing on ascent, and how a safety stop plays into that, can be gained from further reading and study. I would highly recommend to the OP Mark Powell's book, Deco for Divers, which is the best available resource on the topic -- quite readable, well illustrated, and without any math. A better understanding of how to interpret a dive profile and ascent rates might have reassured the OP and made this post unnecessary.