Help needed for diagnosis - pictures inside

I will look into the gap settings. But I do know that won't cause it to idle erratically like it is. I had this same gap on my last engine and it ran fine.