You're doing 36 hole hub on 40 hole rim or the other way around?
If it is tensioned properly and round and true just take a file to the protruding heads. Spokes are very soft and will melt under the file. If you arent done all of them in 3 minutes you are doing it wrong.