I have a tasker program that uses autoinput to perform a swipe down every 10 seconds to refresh the screen on my Samsung Note 9. It works most of the time but usually within 10 minutes gives the error "Couldn't perform gesture". This crashes the program and I have to re run the program if I notice it. Both Tasker and Autoinput are paid versions. update. I just noticed continue task after error so will see if that at least helps.