My baby don't want to be put down

Ki

My 2 months baby won't let me put him down. He'll wake up from his deep sleep after I put him down. Any advice? My doctors said let him cry and he can learn to self soothe. But It hurts to hear him cry.