I have recently set up NextCloud on a Raspberry 4B with 4GByte RAM for three home users.
Works without issues. Just in case you’re looking for something alternatively.
The image named “NextCloudPi” works perfect on it.
It might be cheaper than the smallest Intel device. If you need more power, the image is also available for Banana PI, Armbian or Rock64 devices