Noctua maintains a list of suitable coolers for various processors.
Here is the list for the 5900x:
https://ncc.noctua.at/cpus/model/AMD-Ryzen-9-5900X-1045
The NH-U12S redux would work, but is not the best on two counts.
1. it is listed as only medium turbo headroom. It has a NSPR rating of 129.
I would look for something like nspr 160 or better.
I have been using a NH-D15s (nspr 167) for a very long time.
It is a high compatibility version of the stronger NH-D15.
2. The redux models will not have the best noctua fans and only a minimum pre applied paste.
What is the make/model of your case?
The stronger coolers may require more height than 158mm.
And, be careful of ram height clearance if you are not using low profile ram.
Yes, you will pay more for noctua.
You will get top quality quiet fans and the easiest mounting system around.