It is not really suited for software which need to maintain long lived connections and that's the case with nextcloud when uploading or downloading large files.
It supports Websockets perfectly. Maybe you're conflating the issue with Apache's default settings, Apache being often the choice to front PHP servers?