"Document security token is not correctly formed" error

what you call the “connector app page”: can you please explain?

Connector app is the separate module. It is needed for communication between Document server and Nextcloud. Please go to Nextcloud > Settings > ONLYOFFICE. There you have to set up Document server address and JWT secret: