I think the reason is that nextcloud was changing upload method from HTTP-POST to HTTP-PUT. Both parameters upload_max_filesize and post_max_size have no effect on PUT.
In this context some filesize checking was removed from code (see github).
I use apache LimitRequestBody Directive in vhost-config to limit filesize.