yes it's definitely related to wrong posture due to jerk by bike riding in road and in wrong sleeping many more condition for proper diagnosis meet the good orthopaedics physiotherapist at your near area.
Next Steps
in back excercise like cat and camel, brizing, and in neck beach ball pressing excercise by head and self streaching by neck muscles
Health Tips
don't do jerking movement and weight lifting...