Troubleshoot grainy or flickering shadow edges (raytraced shadows)

 
 
 

Do either of the following: