Hi Aliyah,
Sorry for all the inconveniences it may have caused on your side.
Based on the description, it seems like there shows an error message frequently when you try to upload images to a SharePoint site. If my understanding is correct, could you kindly do the following tests for us so that we can troubleshoot the issue further and provide the appropriate resolutions efficiently.
1.From the shared screenshot, it seems like you are using Image webpart when editing the site page. If so, to check if the issue only happens when you try to upload a local image, please try to upload other images from the options on left.
2.Use other browsers and check the result.
3.Go to other pages in the issue site and check if you can upload images in other pages.
4.Check if you are able to upload images in other SharePoint sites.
5.Comfirm with other users if they will be able to upload images in the site if it is convenient for you to do so.
Best Regards,
Mia