dear, stop compiling collabora. start using community documentserver with this topic
i am using it on my rpi4 4gb without any issues.