If you see an error like “The uploaded file exceeds the upload size” when adding a theme or plugin, you just need to raise a couple of PHP limits for your site.
Using cPanel:
Log in to cPanel.
Go to Software → MultiPHP INI Editor.

Select your domain from the dropdown:

upload_max_filesize:
64M(or the smallest value that fits your file)post_max_size:
64M(must be ≥upload_max_filesize). This can be larger than upload_max_filesize if required, but must at least be equal to upload_max_filesize.
Click Apply.

Tips
If you are using Cloudlinux, you may need to adjust the LVE setting also if the resources allocated here are higher than those in the LVE Manager.
Dont set these too high as it may allow abuse of the resources through the site, which may affect the rest of the server/other sites.