If the client is connecting (to Cloudflare) by IPv6, then you can’t know their IPv4 address.
While getting your backend to use IPv6 is the best solution, a temporary hard fix is to turn off IPv6 for your domain which will force clients to connect to Cloudflare over IPv4. Unless you have an Enterprise account, this can only be done using the API and will affect all subdomains in the zone.