For your consideration, an article at Science Alert:
While most episodes of neck pain are likely to get better within a few months, half to three-quarters of people who have neck pain will experience repeated episodes of pain.
It’s often said there are “good and bad postures” and that specific postures can contribute to spinal pain but this belief is not supported by scientific evidence. Indeed, research shows that poor sleep, reduced physical activity and increased stress appear to be more important factors.
So despite attempts by health professionals to correct your posture and the use of “ergonomic” chairs, desks, keyboards and other gadgets chances are so-called “lifestyle factors” – such as getting enough sleep, making sure you exercise and keeping stress to a minimum – seem to be more salient in relieving and preventing the pain in your neck.