Events are sent in separate payloads if they are too many

Fixes: #852