Lately my iMac would make a loud static or electric popping sound and would freeze up and restart. Its a late 2015 3.2ghz model with ram upgraded to 32GB and I added an apple 512gb flash ssd. It happens usually once a month but multiple times on the same day then won't happen again for awhile.