Invoices api failing when invoice are more than 36 invoices
Error: 500 internal server error 

Attached image

This is happening on my prod eth server , pls advise how to debug and resolve it asap.
Rest all api working fine.
![Screenshot from 2024-01-06 19-16-48](https://github.com/bitcart/bitcart/assets/83241464/8ef7c8c0-04a0-41c7-818f-a107a146c6ff)
