@daveg https://www.janetlansbury.com/2018/03/children-hurting-theyre-upset/
Our eldest did that around that age, then progressed to biting, then grew out of it. We were able to redirect a little bit - hitting her head against a pillow or plushie, later biting it. Only time solved it though