I found the problem!
there was a wrong settings for ONLYOFFICE. Document Editing Service address was wrong. it refers to http host without domain name.
When I changed it to my https URL with domain name it was fixed it.
For further details how to fixed, help other don’t understand the solution, I share this screenshot
sorry I’m not able to upload the screenshot at this moment
in Nextcloud setting
Onlyoffice > Server settings > Change ‘http’ to ‘https’