Bug Report: HideCategories used in C++ with "ConstraintComponent" crashes the editor

I have a custom class that inherits from UPhysicsConstraint component. If I try to hide settings of the UPC with the category “ConstraintComponent” in my custom class’ UCLASS() macro like so:

UCLASS(ClassGroup = ("Custom Classes"), meta = (BlueprintSpawnableComponent), HideCategories=(ConstraintComponent))

The editor crashes when I select the custom component to view its settings in a details panel.

Edit: Just tested this on 4.19 and it no longer crashes.

Get the same but only if the component is selected when compiling. Otherwise it seems to work fine.
Here’s the trace

Access violation - code c0000005 (first/second chance not available)

UE4Editor_PropertyEditor!FObjectPropertyNode::GetValueBaseAddress() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\objectpropertynode.cpp:373]
UE4Editor_PropertyEditor!FItemPropertyNode::GetValueBaseAddress() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\itempropertynode.cpp:39]
UE4Editor_PropertyEditor!FItemPropertyNode::GetValueAddress() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\itempropertynode.cpp:104]
UE4Editor_PropertyEditor!FPropertyEditor::IsEditConditionMet() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\presentation\propertyeditor\propertyeditor.cpp:629]
UE4Editor_PropertyEditor!SEditConditionWidget::OnGetEditConditionCheckState() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\propertyeditor\private\propertyeditorhelpers.cpp:373]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<1,SEditConditionWidget,0,enum ECheckBoxState __cdecl(void)>::Execute() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_Slate!TAttribute::Get() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\misc\attribute.h:137]
UE4Editor_Slate!SCheckBox::OnGetCheckImage() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slate\private\widgets\input\scheckbox.cpp:244]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<1,SCheckBox,0,FSlateBrush const * __ptr64 __cdecl(void)>::Execute() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]