Preview Generator on nextcloud box [snap]

I would also recommend You read this
Nextcloud box [official snap] stops working when accessing huge directories!

Kind of related.

Good luck