Error when trying to Write/Set Value to variable

Error when trying to Write/Set Value to variable

I started to have this behaviour: when I try to write/set a value to a variable the software freezes for ~10 seconds and in the diagnosis viewer i get this error:



I don't know why this happen. Edit: This happens when a function tries to modify the value.