How harshly will a potential project supervisor judge me for doing poorly in his course?
When in doubt, communicate.

That is a golden rule that I have learned that works well in virtually any scenario. If you explain what you think your issues are, the prof can try to help you. Not talking to him won't magically make this go away.

If anything, he would probably think higher of you for discussing this with him.