We spent a bit of time trying to replicate the RTH problem during the last couple of weeks (the whole issue is supposedly resolved now but more of that later) and it turns out it's remarkably easy to do.
Don't try this at home kids

but with 3.1.2......
as soon as the drone loses contact with the receiver and you have failsafe RTH enabled then it resets the home point - usually to the wrong position. Now, this is no issue if you are in range and in full line of sight of the drone as you can take control back as soon as the transmitter reconnects - the problem seems to be that most flyaways have been caused when the pilots were already on the absolute limit when they lost contact so as soon as the P£ heads off in the wrong direction then regaining control is pretty much impossible. This explanation also fits with why it's always Standards as the Advanced and Pro have much greater range.
Anyway, as of last night, that's all a bit irrelevant as DJI have pushed out an update that you can't opt out of. As soon as you connect the P3 the app shuts down until you update to the latest version.