Prevent logpush from truncating logs

I am using logpush to save logs from a worker to an r2 bucket. In this worker, console.log gets called about 100 times, however only 22 console.log calls show up, and a log shows up saying that the logs were truncated:

{"Level":"unknown","Message":["<<<Logpush: logs truncated>>>"],"TimestampMs":0}

How can I prevent this from happening?

You can’t. That’s the current limit. You need to hope that Cloudflare increases this limit in future.