That's how solving problems happens after "giving up", and this is well-documented in cognitive studies. It's called the "default mode network"[1] and it's possible to learn to activate it.
As for your example "Give up trying to cure your alcoholic and your partner decides to go to AA on their own", that's an entirely different mechanism, involving human social relations and self-interest. I don't have a good explanation, but have you ever been in a situation where someone told you to do something that you knew was good for it, but you resisted doing it? Maybe you justified your refusal as being skeptical, or just didn't like being told what to do.