Screen overlay error is usually caused due to permission requests from some apps. You can disable the permission of the app to solve the problem. On Settings, search for "Draw over other apps" or "Apps that can appear on top", and then you should be shown with all the apps that can request the permission. Or you can uninstall the apps that might cause the problem.