Increase Upload Size
By default, PHP and NGINX configs have the default upload limit of 2MB.
This limit can be increased to a reasonable size like 12MB to accommodate larger image size upload.
Navigate to the PHP directory where the php.ini file is located. On Debian 11 systems with PHP 8.1, the location is in the various php packages at /etc/php/8.1/
Search for the lines post_max_size and upload_max_size, and change them to a higher limit.