iMac fan running at high speed during sleep or shutdown
iMac late 2012. Just installed Catalina and the very next time iMac went into sleep mode, fan came on at high speed. Also in shutdown mode fan comes on immediately at high speed. Tried SMC reset about a dozen times, tried PRAM reset 3 times, on activity monitor accountsd was using up a lot of CPU time so forced quit, tried reinstalling Catalina. So far no success. Tried to run diagnostics but when I press D at restart get just a white screen. My only solution so far is to turn off sleep mode. I can live with this but obviously would like to fix the underlying problem.
iMac 21.5″, macOS 10.15