I don't know of any way to reproduce it. But it happens to random actions. Set Variable, Pause, Get Line etc..
In the print screen in the original post it happen to a Go To Page -action. When you debug/run a template and you execute that specific (broken?) action, that error message pops up.
But...