Welcome to the Community - I would be leery of setting CPU affinity - Microsoft recommends it only special instances and this feature will be depreciated in later version of SQL - I would first find out why you had this spike and address that issues - If the load is increasing than I would consider adding additional processors
If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful