Denoise not working properly?

I’ve had this problem for a long time now on different computers and never found an answer.

When I render an image saving as a CXR whenever I open this file, the “beauty” option is correctly denoised, but if i have to adjust any lighting or settings, it appears that there was no denoise. The edges all got a lot of noise like this image i uploaded