This is not a stupid problem. I've been there too...barreling across Charleston Harbor by myself hanging onto a rudder. The newer boats like to bare away with no weight onboard and sails eased. I suspect, however, that if you leave any sheet on the main that the boat will likely continue to roll over and re-capsize when you right it.
If I'm on a course race where help is available, here's my process: the first thing I try to do is get a crew on the low hull and have them roll over the hull as the boat comes up so they're on the deck ready to get things under control. If that fails, I make a solid effort to make sure I'm clear of any lines and QUICKLY duck under the hull (with a foot on the daggerboard if possible) and get to a trap line before the boat has a chance to start accelerating.
If I'm in a distance race where help may not be available, I came up with a system a couple of years ago where I had a pocket sewn into the bottom of my trampoline that houses a "drift sock", some line, and two carabiners. If we capsize in breeze that leaves us at risk of the bear-away happening - or if one of us got separated in the capsize, the idea is that the bitter end of the line for the drift sock is clipped to the dolphin striker and a second flow-through carabiner clipped to one of the forestay bridles. Then the drift sock is thrown off the bow. It will do a couple of things - 1) it keeps the bow oriented into the wind to make single handed righting easier. and 2) keeps the bow to the wind once righted so you don't risk having the boat bear away. Once the boat is righted, you haul in the sock (from the line clipped to the dolphin striker) and can just leave it dangling at the forestay while you go back to pick up your crew.