I have the same issue with a Ryzen 2700x + x470 board, could not even install Windows without crashing immediately. Only when I put the cpu type to kvm64 the system works.
Tried your solution, but this did not help much. System would boot, but crashes after using something which utilizes one...