Hi,
if in FBE or FEE modes and external crystal fail, for example, stop suddenly, you have no chance to switch to internal clock. You must set ICS_C4[CME], the clock monitor will reset the system.
If the situation is not so worse, FLL is detected from lock to unlock, an interrupt can be trig. Then you can switch clock. Details please see the 20.4.7.1.
Regards,
Jing