I’m using separate CODE so I can’t say if built-in is slower. But likely the https/TLS offloading problem above has some affect. The URL shown in the settings in no everything. Nextcloud learns about capabilities and endpoints of CODE using the /hosting/discovery
URL as shown per Collabora integration guide please review the XML document shows right https:// URLs. I think it learns the external URL from X-Forwarded-For headers which might be missing.