overfeeding your baby

My 5 week old cries every night for a couple of hours and nothing seems to soothe him. I took him to the dr today, she checked his weight and said I'm overfeeding him and he shouldn't be gaining this much. Had anybody experienced this, and what did you do?