Is it safe for Mac not to sleep for over a month
Won't fix your issue, but, anecdotally…

My Mac has been running 24/7 since 2008, never sleeping &amp; only ever rebooting/shutting down for OS updates/hardware clean etc. 

No issues so far.

So I'd say, yes, it's perfectly safe to leave it awake, so long as it has adequate cooling.