RE: neck problem!
It's more likely to be some long-term injury that keeps flaring up. Of course this is hard to say unequivocally because I haven't seen your form.
Firstly, you should perform some simple static neck stretches before you begin your weights. Simply tilt the head to one side (horizontally) and use your other hand to push the top of your head toward where you are leaning to deepen the stretch.
You can also use neck slings, neck machines and your hands as resistance whilst pushing against them in various directions.
If the problem keeps happening, see a physio.