My baby does this when he’s teething x
Could he be overstimulated? One of mine since about 5 months has done this when he's overstimulated, like a way of shutting out the noise. Another did it when he was teething too. My youngest hasn't done it but I won't be surprised if he does😂
He might have earache? Worth taking him to gp x