While debugging 'System.NullReferenceException: Object reference not set to an instance of an object.' at XmlDoc2CmdletDoc.Core.Domain.Command.<>c.<get_OutputTypes> I eventually found the culprit to be the OutputType attribute on my cmdlet [OutputType(nameof(SomeObject))].
Removing it resolved it for now. It would be nice to know on which cmdlet, property or attribute it fails to easily correct the situation. At least the above will give guidance to others.