When in the Safe mode options,  you can choose the first option, Restart PS5 in Safe Mode, to exit PS5 Safe Mode. The console will then shut down and restart in normal mode. Alternately, you can also turn it off by pressing the power button.