Just an update.
Running with kernel 4.14.5 with SVM enabled in the bios. But this time with a kernel option called “iommu=pt” added in the kernel bootup.
It is running for more than 9days and 20hours.
Got the tip to add “iommu=pt” in the kernel options from the following link.
https://forum.level1techs.com/t/just-finished-building-ryzen-system-kernel-panic-whenever-iommu-is-enabled-in-bios/121907/8