Outside the obvious escape this puts the galaxy in a precarious situation. Leila doesnt have training in the force but it could activate due to the trauma which enables her to escape at some point.
Yoda is dead as is Obiwan so the only trainer left that comes to mind is Ashoka which would make...