This may or may not work depending on your scene, but what usually helps solve this issue for me is disabling TSR in the rendering settings. Just set your anti aliasing method to none. This allowed me to get and finish a render in the viewport. Hope that helps!