`TreeView->ClearSelection()` gets called before the text is set/committed. `FBlueprintDelegateActionDetails::GetDelegateProperty` which calls `SMyBlueprint::SelectionAsDelegate` requires the TreeView to have a selection set, otherwise it fails.
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-67240 in the post.