Head banging ?

Gina

Hi beautiful people, so I have a concern and am needing some feedback. So my son is 14 months and I wanna say about 2 1/2 to 3 months ago he started banging his head and I kind of just tought it would pass but so far it hasn’t. He does it when he gets mad yes, but he also does it just randomly. Like if he’s sitting and there’s something behind him he will start just banging his head against whatever it is, not hard to were it’s hurting him but still hitting himself. He does it in his crib he does it just randomly, my question is should I be worried, has this happened to any of yall with your kids? Thanks in advance for the feedback.