Mac Mini freezes after a while

So whenever i leave my mac mini idle after a while it would just freeze and i could not move my cursor or click or type anything so i had to restart every time. When i used to have sleep enabled it would go to sleep but not wake up but now i have disabled sleep and it would work like normal when idle (the time is correct) until i move my mouse and boom it instantly freezes.

Mac Mini 6,1

Opencore 1.30
Mac Os Ventura

submitted by /u/JackPed522509
[link] [comments]