This is a problem in RM 5.1 copy/pasting a Simple IF condition executing a Wait Event:
If the If/Wait Event is pasted immediately afterward this error is displayed:
At this point the only way out is to remove the app. This happens consistently with both regular and test apps.
Error log shows: