We recommend using official guide to configure sFlow on MX platform.
Unfortunately, MX on Juniper has multiple quirks and may not work well. We recommend using inline monitoring services instead.
To address one of the well known sFlow protocol implementation issues on Juniper MX you may use this flag:
sudo fcli set sflow_read_packet_length_from_ip_header true sudo fcli commit