Most image problems are about looks. This one is about a hard limit. You have a form that will not accept your photo unless it is small, and the number it names is lower than anything your camera or phone produces. The fix is not to guess. It is to work out what the limit actually means, then hit it in one pass.
A quick way to do that is to use a tool that lets you state the target size and work backwards, such as resizeimages.org, which compresses an image to a set weight in the browser.
Read the limit before you touch the file
Forms phrase limits in two different ways, and they are not the same. Some say the file must be under a certain weight, in kilobytes or megabytes. Others say the image must be under a certain width and height, in pixels. Plenty say both. Take a screenshot of the instructions or copy the text somewhere you can see it while you work, because the message that appears after a failed upload is often vaguer than the original rule.
If the rule is a weight, your job is compression. If the rule is a dimension, your job is resizing. If it is both, do the resizing first and the compression second, because shrinking the pixel dimensions usually reduces the weight on its own.
Know which number the form is checking
A form that rejects a file does so before anything is sent, so it is checking the file's properties on your device. That means the file name extension, the file's actual format, its size in bytes, and sometimes its pixel dimensions. A JPG renamed to .png is still a JPG and may be refused. A photo that is small in megabytes can still be huge in pixels and fail a dimension check. Look at both values in your file's properties before deciding what to change.
Compress to a weight, not to a feeling
Quality sliders are hard to aim. You move one, save, check the file size, and repeat. If the form names a specific weight, set that weight directly and let the tool find the quality that fits. This is faster and it stops you overshooting into a visibly soft image when a slightly higher quality would still have passed.
Keep a copy of the original. Compression is not reversible, and you may need a better version later for a different form with a more generous limit.
Check the format the form expects
Many forms accept JPG and nothing else. Some accept PNG. A few now take WebP. If your image is a screenshot, it is probably PNG and may be far heavier than the same picture saved as JPG. If it came from an iPhone, it may be HEIC, which many forms will not read at all. Convert to the format the form lists before you start worrying about weight, since the conversion itself often changes the size.
Test with the real form before you need it
Do a trial upload with a few days to spare, not ten minutes before a deadline. If the form accepts the file, you are done. If it does not, the error message will usually tell you which rule you broke, and you can adjust one value rather than all of them. Keep the accepted file somewhere obvious so you are not rebuilding it under pressure.
The whole task comes down to reading the rule precisely, changing the one property the rule is about, and confirming with the form itself. Once you have done it for one form, the next one takes a fraction of the time.