I think the lesson learned is
When flying indoors or under a canopy, turn off RTH or change Rth height. Every environment is different adjust your settings accordingly. Iv had lots of close calls with my mavic wigging out suddenly. On a brighter note, this could be the perfect excuse to upgrade...