I had times where the android Not Chrome would freeze on my phone. I turned off an extension that adds a panel for more buttons and the freezes disappeared. Idk if this will be relevant to your problem since it’s your whole phone that froze but maybe you’re using some problematic extensions or you may have had some settings that caused it.
I haven’t played nier but from what I’ve gathered from the internet, Elden ring requires much more power than nier. I use AMD FSR for elden ring since some areas would have stutters. For windows, you can use magpie for it.