Hack keeps rebooting randomly...

Issue #1: My hackintosh keeps rebooting randomly without any other information, all I get is a message when I get back to my mac saying that the PC has shutdown unexpectedly, also the American Megatrends error shows up when booting...

Issue #2: When I shutdown my mac it does not shut down, it reboots, and also showes the American Megatrends error.

Issue #3: When I reboot my mac, I see the American Megatrends error.

Motherboard: Asus Prime B460M-A
CPU: i5 10400F
GPU: RX 580
RAM: 16GB

Author: Yamen-Mac-User