In the game super mario brothers and the sequels, mario doesn't hit his head on the item blocks, he actually hits it with his hand. If you look closely you'll see he actually puts his hand above his head and that is what is hitt the blocks when he jumps.
image generated by artificial intelligence (wonder)
The Name Mario Comes from a man that was renting warehouses to Nintendo, he was called Mario.