If the SSD didn’t make a difference and with this in context, it sounds like something getting warm might be triggering this. Smells like a motherboard issue to me but what do I know.
BTW worth checking for this known sporadic issue (some power transistors going bad?):