Rest api errors

I keep getting these errors in my log:
The REST API route definition for cf-api/v2/forms is missing the required permission_callback argument.
The REST API route definition for cf-api/v2/entries is missing the required permission_callback argument.

Also I’m experiencing 502 errors. Are they connected?
Kindly let me know of a possible solution. As you can probably understand, my knowledge in this domain is very limited. Thanks

I’m using Cloudflare with Wordfence. I’ve set Firewall rules on CF and specified “How to get IPs” in WF. Hosting on Dreampress.