The problem is about the order that WordPress loads plugins, the Akismet plugin was loaded before CloudFlare flexible SSL initiated. You can try to change the plugin loading order by using another plugin.
I describe more details here https://www.hieule.info/web/solve-the-akismet-problem-with-cloudflare-ssl/