I discovered how can we use PS4 controller inside RetroArch, with out crashing. So this is how it works.
1: Open RetroArch with a PS3 or other controller that is not PS4 inside CFA settings. 2: Already open, go back to settings and change from the selected controller to PS4. 3: Open App Switcher and select AmRetroArch, dont open by pressing the icon. 4: It should say, connected to controller.
In case anyone was wondering how to use a PS4 controller. ️
Forget all this! The newest RetroArch fixes this issue!