i9 9900k is a CPU that generally gets too hot when any heavy task is performed on it. But please mention your full PC hardware list, like the PSU, motherboard, the cabinet you are using, and all other details.
Also, mention the thermal paste you are using. Was it pre-applied on the cooler? The...