If you were running off in 10 gusting 15 apparent wind you were likely doing around 5+ knots. This means the true wind was around 15 gusting 20. Now you turn upwind and the apparent wind goes up to 20 gusting 25 (ballpark). So, something like double the apparent wind, and that means something like 4 times the aerodynamic loads. Add in an untimely stronger gust and it's easy to see how you might be overpowered .
The above is a slight exaggeration in that once past a beam reach the
sails would be luffing a good deal, but they still provide a lot of drag, and that does add to the heeling force... plus there is some centrifugal force on the rig, and that too adds to the heeling force.
So, the lesson is that you need to watch the TRUE wind whilst running and use it to base your thoughts on trim and maneuvering as you change course. (A lesson that many
newbie catamaran skippers learn the hard way since their
boats can go quite fast downwind which exacerbates the situation if they turn up.)
So, keep sailing and
learning... its why sailing is such an interesting sport!
Jim