Hi, @Qusay Sosan
Thank you for posting in Microsoft Q&A forum.
Like Rahul Jindal mentioned, you may create a custom client setting and disable the option "Configuration Manager can force a device to restart", then deploy this custom client setting to the server device collection.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".