How do I stop my 2month old hair from falling out where he sleep on it at?

You can't. Your two month old is losing hair because after birth it goes into a resting phase (has to do with cell division) and will fall out. Don't worry, it grows back. Sometimes children will get a bald patch where rubbing can cause friction and hair loss, but that too will come back.