How to remove svchost.exe error on Windows XP machine?

I am getting svchost.exe every time I open my computer.
It’s kind of annoying because if I press the ok button, it will give me an error and if I press cancel it will pop up again.
I’m hoping to get some solution first before I format my computer to save time and effort.
