Weird "stepwise" shading in render

Hi everyone, am having the following problem. Whether I render at H.264 or H.265 (NVIDIA GPU) I am getting these weird “stepwise” shading that you can hopefully see in the red box. Strangely they do not show up when I work in TD. I render at 4k. When I choose H.265 and I change the profile to Lossless it improves, but still exists. If I render H.264 in Lossless profile, it looks like it’s fixed, but I can’t play it back in any video player. Does anybody know a fix?