you may find more insights in here Rhino Inside Revit crashing with Human UI (if window has not been opened) - #7 by Matthew_Breau1 - Revit - McNeel Forum
and here https://discourse.mcneel.com/search?q=human%20ui%20revit