Nextcloud office in AIO is laggy

I have a nextcloud AIO installation at home. It is local, behind a reverse proxy which is also on the same host. I access it over VPN, so the domain mynextcloud.com is VPN IP. The instance has plenty of RAM 10GB RAM and runs on NVMe

The nextcloud itself works fine, but editing a spreadsheet using Nextcloud Office (Collabora online) from Chrome/Firefox is laggy. Like, clicking on different fields in an excel sheet, there is a lag moving from one location to another.

Editing docx files is sort of acceptable, but editing excel XLSX files is very laggy and impractical. This tells me that the issue is Collabora container, specific to XLSX files. The CPU usage is 2% and does not spike as I edit the file.

The issue is similar to this:

The network is not the issue: Google docs is fast, and access to other files
in nextcloud is reasonably fast. As I said, editing docx files is usable too.

The URL of Collabora server is https://mynextcloud.com, and I also tried http://[collabora-continer-IP].

How to troubleshoot this issue?

Is there a library missing from Collabora (related to richdocuments etc)?

Lots of messages in container logs, but I do not understand them.