Sorry you learned the hard way.
I ignored RTH warning few times, but ONLY over dry land and close to "home" or a place where I could safely land. Normally my process is to fly out into the wind, do some shooting and start flying back at at laround 60% battery (more if I'm over water).
Do some...