Postman console - copy all logs to the clipboard - content is incomplete

First of all, I am not a developer. Therefore, I don’t have much experience with JavaScript.

On my current project, I have a problem with my test script. This script is used to write a simple log to the console for about 3755 requests (collection runner). With this script I expect, that there is a log entry (console) with every single request. But that’s not the case. If I copy all logs to the clipboard (button “copy all logs to the clipboard”, hid network, no timestamps), I have only 2500 entries instead of 3755 (if I make less requests, it’s seems to be okay).
The simplified script looks like this:

function writeConsoleLog()
var responseJson = xml2Json(responseBody);
} catch (ex) 
console.log("An exception occurs.");
//console.log(" "+ex.message);
pm.test("Status code is 200", function () {;
pm.test("Body matches string", function () {

My environment:
Windows 10
Chrome 97.0.4692.7 with desktop agent

Is something wrong with my test-script? Are there any known limitations in this direction (2500 entries instead of the expected 3755)?

My assumption here is there is a buffer overflow limit. If it hits at 2500, you may need to parse anything above that into a secondary log file.

Thanks for your feedback. As a workaround I restrict the number of requests with the collection runner. Although it would be handy if everything could be done in one step.