Onlyoffice wiki recommends to install a newer nodejs now:
https://wiki.nethserver.org/doku.php?id=onlyoffice#install_nodejs_repo
You may disable spellchecker or use higher nodejs version to not have high CPU load, see Nextcloud Onlyoffice Nodejs and npm version