This is called beak grinding or clicking. Most budgies will beak grind as they're settling down for a nap. It is a sign of contentment and is a normal behaviour.