From the product specification on their website (https://noctua.at/en/nh-u12s/specification) you can see the measurements of the unit.
Check this with you motherboard/RAM and just check that there will be no clearance issues.
That RAM has a heat sink installed but it'snot too high so hopefully you'll be ok.