As
@Yorkshire_Pud said, the technical solution is to set RTH to hover.
However, in a mission like this, planning more important. If you lose signal and it stops and hovers, you're going to need to get back in range and reconnect to get your drone back.
So, plan ahead of time exactly what you're route is going to be. Use a map. Plan how, along that route, you are going to move closer to where the drone is hovering, to reconnect. Consider the entire path, and several reconnect/recovery locations.
Just in dealing with the disconnent issue, a lot can go wrong. How long is it going to take you to get to where you reconnect? If it takes longer than your remaining battery, you're going for a bath.
That's all the stuff you can plan for, and reduce risk. Other stuff, like VPS confusion low over moving water, is just something you'll have to live with, and hope it doesn't drift into a tree branch or something while "hovering" disconnected.
To counter that, use an Avata, or fly with prop cages if available for your model... I think it's an available DJI accessory for all the Mini models. Example, the
Mini 3: