for anyone looking for a solution
use this command
r.HighresScreenshotDelay
and add the no. of samples u have set in your post process for path tracing
For eg if u have 1024 samples set in the post process volume for path tracing, write
r.HighresScreenshotDelay 1024
hope it helps to anyone struggling with this issue