Don't tell your manager or HR. If your true motivation is concern for his health, you're unlikely to change his behavior that way.
If you really want to help him, you first need to talk to him about it. Tell him you've noticed how hard he's working, and you'd like to help if you can. Be clear that you don't mean you're going to help by doing his work for him. Rather, you'd like to listen to his side of the story and see if the two of you could brainstorm some solutions.
After you've done this, you may discover that some additional learning/training could help him move faster. That's a best-case scenario. Perhaps he's just not equipped for this job, and he could start job hunting while he's still employed with your firm.
You're more likely to notice some things that can't just be fixed. You may discover that anxiety or excessive attention to detail (perfectionism) are causing him to take much longer.
Those are issues that only he can work on, and he'd need to work on them only with psychiatric professionals.
No matter the size of your company, you're going to encounter people who can't do their jobs very well and are harming themselves and/or the company. It's really none of your business unless A) they're in danger, B) they're doing something illegal, or C) you're their superior. Be very certain that your coworker is in danger before you proceed.