I have been editing my images for smaller ones and noticed that the Link URL field clears when I replace/edit. Even if I add the LInkURL before the save it clears. My workaround is to copy the existing link URL into my clipboard, edit/replace image, save, paste URL back, Save. Tried in Edge and Chrome
Open existing image with a Link URL value Click Replace/Edit File Select new file Save