You are good. The cooler is 160mm tall.
As to clearing the ram, there are several options.
Your favored cooler orientation is to send the cpu air towards the back of the case.
If necessary, to clear the ram, the cooling fan can be slid up a notch higher.
Or, the fan can be mounted on the opposite side to pull cooling air through the cooler.