I found a couple of similar issues - https://github.com/ONLYOFFICE/DocumentServer/issues/33 and https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/96
Can you check the below:
Are the certs for the onlyoffice installation valid? Give the onlyoffice app more memory.