A ping spike usually has nothing to do with your PC but the network and then what you are pinging. If your ISP isn't that great or you are on WiFi then it's too likely it's not your PC to blame.

To see if it's the usual WiFi, disable WiFi in router, get wired and re-test