High Resolution Screenshot issue

Why does the rendering in viewport and in High Res Screenshot look so different?

Is there a way to fix this or change some settings for High Res Screenshot?

The first screenshot in done using “High Resolution Screenshot” and the second one is by pressing F9

The little stones are foliage