I get the same error, seems to do that with screen off so I use stopwatches instead.In v5.27.1, if I use the wait action for more than 5 seconds, the macro stops with an error.
4 seconds is ok, 5 seconds is out, probably a bug.
Oh wait it does it in any caseseems to do that with screen off
(This is an email)MacroDroid support said:This is fixed but I'm waiting for Google to review the release be before they will let it go live.