Not the whole cooler, just a fan. Something like that (attachment).
You just unpin it with those two wires on the sides, move fan a little bit higher and then pin it again.You can also try to mount the memory when you have fan removed and then place it on the right height.