Random Restarts

i have Zuk Z1.
on mokee 8.1 my device sometimes automatically restarts.
when the phone is in standby mode it rendomly restarts after some time mybe around 5 to 6 hours.
phone have no such problems with other roms.

maybe its because magisk root app or all-in-one-toolbox apps… i dont know