This Question is same as AMD GPU Material in "material preview mode" and "rendered mode", is entirely gray as background. Only outline is displayed
I am using Blender 2.93 and was learning blender with Doughnut tutorial of blender guru. When I came to the part of rendering the object was unable to render. I even tried it with just the default general cube object which comes up when opening a new file. The render during both times was like in the image.