Good idea. That might help. Although running as virtual machine never seems to work quite right.
Funny how “the hardware outlasted the software.” Usually it is the other way around with PCs.
For this purpose, the "legacy replacement XP" that you download would be specially designed to work properly in the VM, by Microsoft.