A “Request to Webtask got ESOCKETTIMEDOUT” is a common error when a rule / hooks / db custom script makes a call to an external API and does not return before the 20 second rule timeout. Please note that all Auth0 webtask containers typically have a 20-second execution limit, after which the container may be recycled and you will get the ESOCKETTIMEDOUT error.
You can also take a look at Real-time Webtask Logs extension to help gather more feedback and check the request / response duration as the webtask runs.