Hello, it could just be because of gastritis
. Other possibility is a disc problem but is unlikely at your age and in the upper back. Its more common in the lower back. If it happens more frequently I would suggest you to get checked physically by a doctor. Take care.