Crasing error

Whenever I try to either render my scene or head to the shading viewport, my blender freezer for 5 seconds then crash. do you know why ?