Yes, I was going to mention the issue with the caps on all of the iMac G5 models, but I see that you've come to that conclusion. Might be a cap either in the PSU or the logic board that might be ready to die. Hopefully not, but it wouldn't surprise me if it was.
I've had both the logic board and PSU replaced twice in 2008.
I've had both the logic board and PSU replaced twice in 2008.