Oh OK thanks, that makes sense. In fact I found this which seems to confirm it:
https://www.ifixit.com/Answers/View/211994/How+do+I+replace+rear+camera+on+HTC+One+M8
Same symptoms, same suggested handling. I don't think I want to try and do it myself though, will have to find somebody who can...