Log: (warn) Trace resource limit exceeded; subsequent logs not recorded

I get this error:

(warn) Trace resource limit exceeded; subsequent logs not recorded.

When running a worker and tailing logs with wranger tail

What does this mean and how do I fix it?

I am only doing a few console.log’s, no stack traces or large objects.

Also my logs seem to be delayed by a few minutes - they are not instant and seem to get delivered in batches, sometimes after I stop/start wranger tail I get the last few minutes all at once even though wrangler tail had been running.

I have same problem