you cannot publish at a very high rate. have a look at this post-Sending MQTT messages within rate limits