Crash on setting an interface as function parameter on UMG Widget

Hello, i have a blueprint interface to unify functionality between 2 umg widgets. I have a third um widget that has a method where i want to pass that interface so i can use both umg widgets and have access to the shared methods. But when i do this and try to compile the editor crashes and on Visual Studio i have a variable with the text “It is not possible to express this interface property as a literal value!”. How can i fix this? Thank you.