How do i fix this? Rendering problem

When you increase the screenshot size it starts to look awful, also when I switch to fullscreen mode in viewport the quality changes. (UE5)