iMac is noisy whilst in sleep mode during the night
I bought a brand new iMac in June 2020 and I put it in sleep mode every night before I go to sleep. A while back I noticed it would make noises during the night as if it was starting up, the display doesn't come on though. It would then go silent after 20 mins or so. I'm not sure how many times it would do this during the night as it's not loud enough to wake me up. But the last few night's I have not been sleeping too well due to being unwell so I've been awake during the night more, and have noticed the Mac is constantly doing it's 'churning' noise, like the cogs inside are going round as if it's working away at something. The kind of grinding noise it makes when you run a heavy task, you'll all know the noise I mean. I've laid in bed and listened to it all night lately, too ill/lazy to get up and turn it off. Does anyone know what can be causing this?
It's a 2019 (just noticed this, even though I bought it in June 2020?) 27" iMac with a 3GHz 6 core processor, 16GB memory, 1TB HD. I have Adobe Illustrator, Safari and WhatsApp open all the time, which is taking up around 12GB total according to the Activity Monitor. It's connected via Wifi.
In my Energy Saver settings I have 'Put hard disks to sleep when possible' and 'Wake for network access' ticked, the rest are unticked.
If anyone could help me it would be hugely appreciated. Should I just be turning my iMac off completely at night time? The iMac in general is quite sluggish whilst I'm working on it too, all I really use are the programs mentioned above. My last Mac was a 2017 one with 8GB ram which wasn't really enough for Adobe Illustrator which I why I upgraded to this 16GB, but I'm still quite disappointed in the performance considering I feel like I don't really do anything over complicated or run huge programs on it!
iMac 27″, macOS 11.1