Custom page for WAF Block, get the 500

The block page returns an HTTP 403 status code, but the error that’s presented is a bit more specific to the Cloudflare service that issued the block. In your case it’s a 1020, which is generated from Firewall Rules as explained in the document you linked.