Answer
Set a recovery strategy that clears relevant obstacles while remaining within the permitted airspace and manufacturer limits. If no single automatic altitude can do that safely, redesign the operation or use a suitable model specific alternative.
Explanation
A setting can solve one hazard and create another. Recovery configuration has to fit both the physical and regulatory environment.