I want to remove the OOTB String Length constraint for the Document Type (actually I would need that the maximum length accepted to be on 40 char instead of 160). Is this possible?
That is true and valid when you give the name yourself. The problem appears when you add a primary content source with the name larger than 40 char. Windchill will accept the name even if you set the constraint to 40 char.