Hi,
Welcome to the ehealthforum. Many thanks for posting and I am glad to help you. The symptom which you have described can occur normally without any underlying pathology.
However, if it remains persistent, it can be due to muscular dystonias. These abnormal sustained contractions occur due to a disease of a part of the brain called basal ganglia.
If such muscle spasms persist, you should consult a neurologist as you might need further investigations to look for the underlying cause of these spasms/movements. Itâs extremely difficult to make a diagnosis online and thus a personal physician opinion is mandatory. I sincerely hope that helps. Take care.