When log exceedes the limit, your API returns an error status 500
Summary
Requests to fetch "traces" of a job which failed due to log limit result in an internal server error in your API.
I said this before, but I will repeat this again. The log size limit is absurd. While this error is not exactly the result of the bad decision of enforcing the maximum log size, it is symptomatic of bad design decision in general.
Please, remove the log limit.