This is not something Cloudflare WAF or any other security feature would do. For that reason, an exception rule would have no effect. This is probably a 522 error, which happens when the server stops responding for a while. In cases like this, you may wanna try WP CLI if your hosting provider offers this tool.