Just tough it out for a bit, you will get used to it!
Not a bad idea to make sure your form is solid, but that is likely not the cause of the pain unless you have the bar all the up at the base of your neck. I've helped many people start squatting, and all complained for the first few sessions...