Thank you for explaining that stuff to me I found a solution tho the whole issue turned out to be a pcie port error being reported none stop by the kernel causing the system to freeze and crash eventually, I fixed it by adding pci=nomsi to grub, worked perfectly and the system is running without any issues now