Do you do any stretching exercises before you begin playing guitar?
look at the following video https://www.guitartricks.com/lesson.php?input=19586
Playing guitar is like sport, if you don't want injuries you better do these exercises, every great guitar player does them before exercising or playing a concert.
Herman