Boas João,
I've a very simple profile to turn OFF WIFI when I leave a certain location.
Recently the action to turn OFF WiFi started to bug.
Sometimes it runs as it should, sometimes runs but doesn't turn off WiFi (ExitERR on the LOG)
I've the last version of Tasker (beta) + new tasker setting and both aren't battery optimized.
Samsung S20 running on Android 11 with One UI 3.0
I've posted on Reddit and there's at least 3 more persons that experience this bug. Link
P.S: Just noticed that you released a new version of tasker settings 2 days ago