Nextcloud needs a minimum of 128MB RAM, and we recommend a minimum of 512MB.