Go onto video settings, set mipmap to minimal, turn off clouds, set graphics to fancy, and reduce your render distance. This should help with accessing your resource packs. What's going on is your computer is trying to anticipate which resource pack you will apply, and to accomodate it's trying to display all your resource packs at once. This should help reduce the strain on the RAM.