In the global configuration of joomla3 as well as 4, there is an adjustment of the maximum file size that you transfer to the server. as for photos, some pearls should be given 2MB max, because people later complain that their site is not working properly and they didn't even think that the smallest photo on the slider is 15MB, so if there are 6, that's 90MB as far as I understand. How long does it take you to download the 90MB application on your mobile if there is one at all?
I will now show you how to set a larger max file size, and it is used for some kind of downloads, videos, pdf circuses, but not for slider photos.
The size of any cover photo should not exceed 1.5MB