You do make it sound like a mental health problem. Health anxiety or something like that.
I don’t think anyone can give you anything definite to do other than seek professional help for the underlying anxiety.
Anxiety is proper horrible once it’s been released from it’s cage though. Genuinely debilitating. Your friend needs to accept their is a problem with it and want to change before progress is made.
Best of luck to you and your friend…