Description of the need In rich text editor in image details, users are allowed to click the insert or update button even if they do not have a file chosen.
Proposed solution You could block the "Update" button until an image is added or have a popup to notify the user that they do not have an image selected when clicking insert/update.
Additional information
Inserting an non-existent file:

Updating after a file is removed:

Recent comments
Worth mentioning as it was in zulip chat by @yorkshirepudding I just tested and the two work together without issue as long as you don't use the "Exclude comments from Content...
Search does not include comments
There is also Node Comments Search - this searches the node and all comments (default search is node and first page of comments) as part of the content search. Izzy's module above is a separate...
Search does not include comments
I have created a new module comment_search
Search does not include comments