I suspect this may be down to this config.php value:
$config['maxImageResizePixelCount'] = 20000000;
That's the default value if you haven't set it in your config.php file before.
You may wish to increase it and try again:
$config['maxImageResizePixelCount'] = 30000000;
Unfortunately resizing images is a very memory intensive operation and it is not uncommon for very large images, which are very common especially on modern smartphones, to simply be too large to resize on the server.
You could try the increased value but there's not guarantee your server will actually be capable of resizing the larger images.
If you continue to have problems, please ensure we see the exact error message wording or a screenshot of the error if possible.