Deploy distsrv 5.30. distsrv as 5.40 has some issues and should not be used.
1- Download version 5.30 from:
2- Copy it to the primary hub archive using the IM console.
3- Deploy the 5.30 version to each Hub using a Distribution Server.
4- Test creating a cdm configuration package. It should work at this point,