Your Rzyen 3900X is rated as a 105 Watt TDP which means you need a CPU Cooler that has a minimum of 130 Watt TDP or higher.
Generally, AMD recommends AIO CPU Coolers or High Quality TDP Air Coolers.
This Windows Tech site offers the best Liquid and Air CPU Coolers for your the 3900X: https://www.windowscentral.com/best-cpu-coolers-amd-ryzen-9-3900x
The AMD Prism which came bundled with the Ryzen 3900X is adequate for normal computer uses. But under heavy stress or loads it may run hotter than a AIO 240MM CPU Cooler or High Quality High TDP Air CPU Cooler.