I don't know about ram being the cause. It's also happening to me but my phone can run genshin impact pubg and other games on Ultra high graphics. Can't understand the cause of it.