error in a user loading controller for excel, but it is an error that does not throw a status

From the front an Excel file is loaded with around 50 to 100 users, some cases may be more, however the problem lies in the fact that, after loading a third of the users, the following error is thrown.

POST /api/loadXLSX/ – – ms – –

which causes the front to issue an alert saying that there was a problem but the back continues to iterate the users after that error.

I’m not sure how to handle the error since I don’t know if it’s a settimeout or what?

The error is not shown if there are between 0 and 50 users, but when there are more, at some point the error is thrown.

We cannot lower the number of users since the company wants it to be massive and fast.